1
0
Fork 0
forked from External/ergo

use Reply() to wrap channel

This commit is contained in:
Jeremy Latt 2014-02-09 08:48:11 -08:00
parent 281558072a
commit 1787ac8ebf
7 changed files with 118 additions and 77 deletions

View file

@ -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 {