Files
irc/target.go
gisle 714b80d6e7
continuous-integration/drone/push Build is passing
rework target ID handling to be less clunky.
2020-11-01 17:23:37 +01:00

12 lines
253 B
Go

package irc
// A Target is a handler for a message meant for a limited part of the client, like a channel or
// query
type Target interface {
ID() string
Kind() string
Name() string
Handle(event *Event, client *Client)
State() ClientStateTarget
}