Documentation
¶
Overview ¶
Package irc is an IRC-over-websocket client implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IRC ¶
type IRC struct {
Dialer *websocket.Dialer
Messages chan *Message // recv
Outgoing chan string // send
// contains filtered or unexported fields
}
IRC is an IRC connection.
func New ¶
New creates a new IRC instance for a single IRC session.
func (*IRC) Close ¶
Close terminates the IRC connection and stops the sender goroutine.
func (*IRC) Connect ¶
Connect to an IRC server.
type Message ¶
type Message struct {
Tags map[string]string `json:"tags"`
Source string `json:"source"`
Command string `json:"command"`
Args []string `json:"args"`
HasTrailer bool `json:"trailer,omitempty"` // Useful to know.. usually
// contains filtered or unexported fields
}
func (Message) Arg ¶
Arg returns the given argument, even if it is not set.
Source Files
¶
- irc.go
- message.go
Click to show internal directories.
Click to hide internal directories.