Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrZombieDoesntExist is an error which says a Zombie does not exist ErrZombieDoesntExist = errors.New("Zombie does not exist") )
Functions ¶
func ParseChannelKey ¶
ParseChannelKey transforms a channel key in form x.x.x.x:6667/#channel into a channel and error TODO Fix when not parsing channel keys with the host is not an IP
Types ¶
type Channels ¶
type Channels struct {
Channels []string `json:"channels"`
}
Channels is the protocol definition of a response containing a list of channels
type Send ¶
type Send struct {
ID int64 `json:"id"`
Channel string `json:"channel"`
Message string `json:"message"`
}
Send is the protocol definition used to make an IRC zombie send a message to the IRC server
type Zombie ¶
type Zombie struct {
Messages chan Send
Channels []string
// contains filtered or unexported fields
}
Zombie is a struct which represents a Big Room user inside of an IRC server.
func NewZombie ¶
NewZombie either creates or retrieves a zombie. Zombies will be created if they do not already exist for that user on a server. Zombies will be retrieved if a zombie for the user on a server already exists
Click to show internal directories.
Click to hide internal directories.