mirror of
https://github.com/ergochat/ergo.git
synced 2025-04-10 18:08:14 +02:00
28 lines
324 B
Go
28 lines
324 B
Go
package irc
|
|
|
|
type Message interface {
|
|
Handle(s *Server, c *Client)
|
|
}
|
|
|
|
type NickMessage struct {
|
|
nickname string
|
|
}
|
|
|
|
type UserMessage struct {
|
|
user string
|
|
mode uint8
|
|
unused string
|
|
realname string
|
|
}
|
|
|
|
|
|
type QuitMessage struct {
|
|
message string
|
|
}
|
|
|
|
type UnknownMessage struct {
|
|
command string
|
|
}
|
|
|
|
type PingMessage struct {}
|