Documentation
¶
Index ¶
- func NewEmoteOverview(channelID string, cache EmoteCache, replacer EmoteReplacer, width, height int) *emoteOverview
- type APIClient
- type APIClientWithRefresh
- type AccountProvider
- type AppStateManager
- type BadgeReplacer
- type ChatPool
- type DependencyContainer
- type EmoteCache
- type EmoteReplacer
- type EventSubMessage
- type EventSubPool
- type MessageLogger
- type ModStatusFetcher
- type RecentMessageService
- type Root
- type UserConfiguration
- type UserEmoteClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEmoteOverview ¶ added in v0.6.0
func NewEmoteOverview(channelID string, cache EmoteCache, replacer EmoteReplacer, width, height int) *emoteOverview
Types ¶
type APIClient ¶ added in v0.0.4
type APIClient interface {
GetUsers(ctx context.Context, logins []string, ids []string) (twitchapi.UserResponse, error)
GetStreamInfo(ctx context.Context, broadcastID []string) (twitchapi.GetStreamsResponse, error)
GetChatSettings(ctx context.Context, broadcasterID string, moderatorID string) (twitchapi.GetChatSettingsResponse, error)
}
type APIClientWithRefresh ¶ added in v0.0.4
type AccountProvider ¶
type AppStateManager ¶ added in v0.6.2
type BadgeReplacer ¶ added in v0.6.2
type ChatPool ¶ added in v0.0.10
type ChatPool interface {
ListenAndServe(inbound <-chan multiplex.InboundMessage) <-chan multiplex.OutboundMessage
}
type DependencyContainer ¶ added in v0.6.2
type DependencyContainer struct {
UserConfig UserConfiguration
Keymap save.KeyMap
Accounts []save.Account
ServerAPI APIClientWithRefresh
APIUserClients map[string]APIClient
AccountProvider AccountProvider
EmoteCache EmoteCache
BadgeCache *badge.Cache
EmoteReplacer EmoteReplacer
BadgeReplacer BadgeReplacer
ImageDisplayManager *kittyimg.DisplayManager
RecentMessageService RecentMessageService
MessageLogger MessageLogger
ChatPool ChatPool
EventSubPool EventSubPool
AppStateManager AppStateManager
}
type EmoteCache ¶ added in v0.6.2
type EmoteCache interface {
GetByText(channelID, text string) (emote.Emote, bool)
RefreshLocal(ctx context.Context, channelID string) error
RefreshGlobal(ctx context.Context) error
GetAllForChannel(id string) emote.EmoteSet
AddUserEmotes(userID string, emotes []emote.Emote)
AllEmotesUsableByUser(userID string) []emote.Emote
RemoveEmoteSetForChannel(channelID string)
LoadSetForeignEmote(emoteID, emoteText string) emote.Emote
}
type EmoteReplacer ¶ added in v0.4.0
type EventSubMessage ¶ added in v0.3.0
type EventSubMessage struct {
Payload eventsub.Message[eventsub.NotificationPayload]
}
EventSubMessage comes when we get a message from the event sub
type EventSubPool ¶ added in v0.3.0
type EventSubPool interface {
ListenAndServe(inbound <-chan multiplex.EventSubInboundMessage) error
}
type MessageLogger ¶ added in v0.5.0
type MessageLogger interface {
MessagesFromUserInChannel(username string, broadcasterChannel string) ([]messagelog.LogEntry, error)
}
type ModStatusFetcher ¶ added in v0.5.1
type RecentMessageService ¶ added in v0.3.0
type Root ¶
type Root struct {
// contains filtered or unexported fields
}
func NewUI ¶
func NewUI( messageLoggerChan chan<- *twitchirc.PrivateMessage, dependencies *DependencyContainer, ) *Root
func (*Root) HasSessionLoaded ¶ added in v0.6.2
func (*Root) TakeStateSnapshot ¶
type UserConfiguration ¶ added in v0.5.0
type UserEmoteClient ¶ added in v0.5.1
Click to show internal directories.
Click to hide internal directories.