Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cacophony ¶
type Cacophony struct {
Sb *Switchboard
}
type Message ¶
type Message struct { /* op can be: say nick catchup */ Op string From string To string Payload []string }
Types of communication: send a message set nick
type Switchboard ¶
type Switchboard struct {
// contains filtered or unexported fields
}
func NewSwitchboard ¶
func NewSwitchboard() Switchboard
func (*Switchboard) Broadcast ¶
func (sw *Switchboard) Broadcast(msg Message)
func (*Switchboard) Register ¶
func (sw *Switchboard) Register() chan Message
func (*Switchboard) SetNick ¶
func (sw *Switchboard) SetNick(c chan Message, msg Message)
func (*Switchboard) Unregister ¶
func (sw *Switchboard) Unregister(c chan Message)
Click to show internal directories.
Click to hide internal directories.