forked from External/ergo
use Reply() to wrap channel
This commit is contained in:
parent
281558072a
commit
1787ac8ebf
7 changed files with 118 additions and 77 deletions
14
irc/types.go
14
irc/types.go
|
|
@ -98,6 +98,20 @@ func (channels ChannelSet) First() *Channel {
|
|||
// interfaces
|
||||
//
|
||||
|
||||
type Identifier interface {
|
||||
Id() string
|
||||
Nick() string
|
||||
}
|
||||
|
||||
type Replier interface {
|
||||
Reply(Reply) error
|
||||
}
|
||||
|
||||
type Reply interface {
|
||||
Format(*Client, chan<- string)
|
||||
Source() Identifier
|
||||
}
|
||||
|
||||
// commands the server understands
|
||||
// TODO rename ServerCommand
|
||||
type Command interface {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue