Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶ added in v0.0.4
type APIClient interface { GetUsers(ctx context.Context, logins []string, ids []string) (twitch.UserResponse, error) GetStreamInfo(ctx context.Context, broadcastID []string) (twitch.GetStreamsResponse, error) GetChatSettings(ctx context.Context, broadcasterID string, moderatorID string) (twitch.GetChatSettingsResponse, error) }
type APIClientWithRefresh ¶ added in v0.0.4
type AccountProvider ¶
type ChatPool ¶ added in v0.0.10
type ChatPool interface {
ListenAndServe(inbound <-chan multiplex.InboundMessage) <-chan multiplex.OutboundMessage
}
type EmoteReplacer ¶ added in v0.4.0
type EmoteStore ¶
type EmoteStore interface { GetByText(channel, text string) (emote.Emote, bool) RefreshLocal(ctx context.Context, channelID string) error RefreshGlobal(ctx context.Context) error GetAllForUser(id string) emote.EmoteSet AddUserEmotes(userID string, emotes []emote.Emote) AllEmotesUsableByUser(userID string) []emote.Emote }
type EventSubMessage ¶ added in v0.3.0
type EventSubMessage struct {
Payload eventsub.Message[eventsub.NotificationPayload]
}
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( logger zerolog.Logger, provider AccountProvider, chatPool ChatPool, emoteStore EmoteStore, clientID string, serverClient APIClientWithRefresh, keymap save.KeyMap, recentMessageService RecentMessageService, eventSub EventSubPool, messageLoggerChan chan<- *command.PrivateMessage, emoteReplacer EmoteReplacer, messageLogger MessageLogger, userConfig UserConfiguration, ) *Root
func (*Root) TakeStateSnapshot ¶
type UserConfiguration ¶ added in v0.5.0
type UserEmoteClient ¶ added in v0.5.1
Source Files
¶
Click to show internal directories.
Click to hide internal directories.