Versions in this module Expand all Collapse all v3 v3.0.2 Jan 10, 2022 v3.0.1 Jan 9, 2022 v3.0.0 Jan 9, 2022 Changes in this version + const CommandsCapability + const MembershipCapability + const TagsCapability + const TwitchRateLimitWindow + const Unlimited + 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 + Proxy *Proxy + SendPings bool + SetupCmd string + TLS bool + func NewAnonymousClient() *Client + func NewClient(username, oauth string, proxy *Proxy) *Client + func (c *Client) Ban(channel, username, reason string) + func (c *Client) Connect() error + func (c *Client) Depart(channel string) + func (c *Client) Disconnect() error + func (c *Client) FollowersOff(channel string) + func (c *Client) FollowersOn(channel, duration string) + 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) OnGlobalUserStateMessage(callback func(message GlobalUserStateMessage)) + 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) SetRateLimiter(rateLimiter *RateLimiter) + func (c *Client) Userlist(channel string) ([]string, error) + func (c *Client) Whisper(username, text string) + type Emote struct + Count int + ID string + Name string + Positions []EmotePosition + type EmotePosition struct + End int + Start int + type GlobalUserStateMessage struct + EmoteSets []string + Raw string + RawType string + Tags map[string]string + Type MessageType + User User + func (msg *GlobalUserStateMessage) GetType() MessageType + type List struct + Info ReplacementInfo + Proxies map[Proxy]bool + func ListFromAPI() (*List, error) + type Message interface + GetType func() MessageType + func ParseMessage(line string) Message + type MessageType int + const CLEARCHAT + const CLEARMSG + const GLOBALUSERSTATE + 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 + FirstMessage bool + 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 Proxy struct + Address string + CityName string + CountryCode string + CountryCodeConfidence float32 + LastVerification string + Password string + Ports struct{ ... } + Username string + type RateLimiter struct + func CreateDefaultRateLimiter() *RateLimiter + func CreateUnlimitedRateLimiter() *RateLimiter + func CreateVerifiedRateLimiter() *RateLimiter + func (r *RateLimiter) Throttle(count int) + 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 ReplacementInfo struct + RefreshLastAt string + RefreshNextAt string + func (r *ReplacementInfo) GetNextRefresh() (*time.Duration, error) + 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/cesoun/go-twitch-irc