Versions in this module Expand all Collapse all v1 v1.1.0 Mar 2, 2019 Changes in this version + var ErrConnectionIsNotOpen = errors.New("connection is not open") + var ReadBufferSize = 64 + var WriteBufferSize = 512 type Client + func (c *Client) OnPingSent(callback func()) + func (c *Client) OnPongReceived(callback func()) v1.0.1 Feb 18, 2019 Changes in this version type Client + SetupCmd string v1.0.0 Jan 28, 2019 Changes in this version + var ErrClientDisconnected = errors.New("client called Disconnect()") + var ErrLoginAuthenticationFailed = errors.New("login authentication failed") + func ParseMessage(line string) (string, *User, *Message) + type Client struct + IdlePingInterval time.Duration + IrcAddress string + PongTimeout time.Duration + SendPings bool + TLS bool + func NewClient(username, oauth string) *Client + func (c *Client) Connect() error + func (c *Client) Depart(channel string) + func (c *Client) Disconnect() error + func (c *Client) Join(channel string) + func (c *Client) OnConnect(callback func()) + func (c *Client) OnNewClearchatMessage(callback func(channel string, user User, message Message)) + func (c *Client) OnNewMessage(callback func(channel string, user User, message Message)) + func (c *Client) OnNewNoticeMessage(callback func(channel string, user User, message Message)) + func (c *Client) OnNewRoomstateMessage(callback func(channel string, user User, message Message)) + func (c *Client) OnNewUnsetMessage(callback func(rawMessage string)) + func (c *Client) OnNewUsernoticeMessage(callback func(channel string, user User, message Message)) + func (c *Client) OnNewUserstateMessage(callback func(channel string, user User, message Message)) + func (c *Client) OnNewWhisper(callback func(user User, message Message)) + func (c *Client) OnUserJoin(callback func(channel, user string)) + func (c *Client) OnUserPart(callback func(channel, user string)) + func (c *Client) Say(channel, text string) + func (c *Client) SetIRCToken(ircToken string) + func (c *Client) Userlist(channel string) ([]string, error) + func (c *Client) Whisper(username, text string) + type Emote struct + Count int + ID string + Name string + type Message struct + Action bool + ChannelID string + Emotes []*Emote + Raw string + Tags map[string]string + Text string + Time time.Time + Type MessageType + type MessageType int + const CLEARCHAT + const NOTICE + const PRIVMSG + const ROOMSTATE + const UNSET + const USERNOTICE + const USERSTATE + const WHISPER + type User struct + Badges map[string]int + Color string + DisplayName string + UserID string + UserType string + Username string