aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/belak/irc/handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/belak/irc/handler.go')
-rw-r--r--vendor/github.com/belak/irc/handler.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/vendor/github.com/belak/irc/handler.go b/vendor/github.com/belak/irc/handler.go
deleted file mode 100644
index 6a9fca7..0000000
--- a/vendor/github.com/belak/irc/handler.go
+++ /dev/null
@@ -1,16 +0,0 @@
-package irc
-
-// Handler is a simple interface meant for dispatching a message from
-// a Client connection.
-type Handler interface {
- Handle(*Client, *Message)
-}
-
-// HandlerFunc is a simple wrapper around a function which allows it
-// to be used as a Handler.
-type HandlerFunc func(*Client, *Message)
-
-// Handle calls f(c, m)
-func (f HandlerFunc) Handle(c *Client, m *Message) {
- f(c, m)
-}