Versions in this module Expand all Collapse all v2 v2.3.2 Jun 6, 2020 Changes in this version + const CommandsCapability + const MembershipCapability + const TagsCapability + var DefaultCapabilities = []string + var ErrClientDisconnected = errors.New("client called Disconnect()") + var ErrConnectionIsNotOpen = errors.New("connection is not open") + var ErrLoginAuthenticationFailed = errors.New("login authentication failed") + var ReadBufferSize = 64 + var WriteBufferSize = 512 + type ClearChatMessage struct + BanDuration int + Channel string + Message string + Raw string + RawType string + RoomID string + Tags map[string]string + TargetUserID string + TargetUsername string + Time time.Time + Type MessageType + func (msg *ClearChatMessage) GetType() MessageType + type ClearMessage struct + Channel string + Login string + Message string + Raw string + RawType string + Tags map[string]string + TargetMsgID string + Type MessageType + func (msg *ClearMessage) GetType() MessageType + type Client struct + Capabilities []string + IdlePingInterval time.Duration + IrcAddress string + PongTimeout time.Duration + SendPings bool + SetupCmd string + TLS bool + func NewAnonymousClient() *Client + func NewClient(username, oauth string) *Client + func (c *Client) ClearMsg(channel, text string) + func (c *Client) Connect() error + func (c *Client) Depart(channel string) + func (c *Client) Disconnect() error + func (c *Client) Join(channels ...string) + func (c *Client) OnClearChatMessage(callback func(message ClearChatMessage)) + func (c *Client) OnClearMessage(callback func(message ClearMessage)) + func (c *Client) OnConnect(callback func()) + func (c *Client) OnNamesMessage(callback func(message NamesMessage)) + func (c *Client) OnNoticeMessage(callback func(message NoticeMessage)) + func (c *Client) OnPingMessage(callback func(message PingMessage)) + func (c *Client) OnPingSent(callback func()) + func (c *Client) OnPongMessage(callback func(message PongMessage)) + func (c *Client) OnPrivateMessage(callback func(message PrivateMessage)) + func (c *Client) OnReconnectMessage(callback func(message ReconnectMessage)) + func (c *Client) OnRoomStateMessage(callback func(message RoomStateMessage)) + func (c *Client) OnUnsetMessage(callback func(message RawMessage)) + func (c *Client) OnUserJoinMessage(callback func(message UserJoinMessage)) + func (c *Client) OnUserNoticeMessage(callback func(message UserNoticeMessage)) + func (c *Client) OnUserPartMessage(callback func(message UserPartMessage)) + func (c *Client) OnUserStateMessage(callback func(message UserStateMessage)) + func (c *Client) OnWhisperMessage(callback func(message WhisperMessage)) + 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 interface + GetType func() MessageType + func ParseMessage(line string) Message + type MessageType int + const CLEARCHAT + const CLEARMSG + const JOIN + const NAMES + const NOTICE + const PART + const PING + const PONG + const PRIVMSG + const RECONNECT + const ROOMSTATE + const UNSET + const USERNOTICE + const USERSTATE + const WHISPER + type NamesMessage struct + Channel string + Raw string + RawType string + Type MessageType + Users []string + func (msg *NamesMessage) GetType() MessageType + type NoticeMessage struct + Channel string + Message string + MsgID string + Raw string + RawType string + Tags map[string]string + Type MessageType + func (msg *NoticeMessage) GetType() MessageType + type PingMessage struct + Message string + Raw string + RawType string + Type MessageType + func (msg *PingMessage) GetType() MessageType + type PongMessage struct + Message string + Raw string + RawType string + Type MessageType + func (msg *PongMessage) GetType() MessageType + type PrivateMessage struct + Action bool + Bits int + Channel string + Emotes []*Emote + ID string + Message string + Raw string + RawType string + RoomID string + Tags map[string]string + Time time.Time + Type MessageType + User User + func (msg *PrivateMessage) GetType() MessageType + type RawMessage struct + Message string + Raw string + RawType string + Tags map[string]string + Type MessageType + func (msg *RawMessage) GetType() MessageType + type ReconnectMessage struct + Raw string + RawType string + Type MessageType + func (msg *ReconnectMessage) GetType() MessageType + type RoomStateMessage struct + Channel string + Message string + Raw string + RawType string + RoomID string + State map[string]int + Tags map[string]string + Type MessageType + func (msg *RoomStateMessage) GetType() MessageType + type User struct + Badges map[string]int + Color string + DisplayName string + ID string + Name string + type UserJoinMessage struct + Channel string + Raw string + RawType string + Type MessageType + User string + func (msg *UserJoinMessage) GetType() MessageType + type UserNoticeMessage struct + Channel string + Emotes []*Emote + ID string + Message string + MsgID string + MsgParams map[string]string + Raw string + RawType string + RoomID string + SystemMsg string + Tags map[string]string + Time time.Time + Type MessageType + User User + func (msg *UserNoticeMessage) GetType() MessageType + type UserPartMessage struct + Channel string + Raw string + RawType string + Type MessageType + User string + func (msg *UserPartMessage) GetType() MessageType + type UserStateMessage struct + Channel string + EmoteSets []string + Message string + Raw string + RawType string + Tags map[string]string + Type MessageType + User User + func (msg *UserStateMessage) GetType() MessageType + type WhisperMessage struct + Action bool + Emotes []*Emote + Message string + MessageID string + Raw string + RawType string + Tags map[string]string + Target string + ThreadID string + Type MessageType + User User + func (msg *WhisperMessage) GetType() MessageType Other modules containing this package github.com/sharifanani/go-twitch-irc