Documentation ¶
Index ¶
- func EmoteCacheDir() (string, error)
- func ReplaceEmoteColored(emote Emote) string
- func SaveCache(e Emote, dec DecodedEmote) error
- type BTTVEmoteFetcher
- type DecodedEmote
- type DecodedImage
- type Emote
- type EmoteSet
- type EmoteStore
- type Platform
- type Replacer
- type SevenTVEmoteFetcher
- type Store
- func (s *Store) GetAll() EmoteSet
- func (s *Store) GetAllForUser(id string) EmoteSet
- func (s *Store) GetByText(channelID, text string) (Emote, bool)
- func (s *Store) GetByTextAllChannels(text string) (Emote, bool)
- func (s *Store) RefreshGlobal(ctx context.Context) error
- func (s *Store) RefreshLocal(ctx context.Context, channelID string) error
- type TwitchEmoteFetcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmoteCacheDir ¶ added in v0.4.0
func ReplaceEmoteColored ¶ added in v0.4.0
func SaveCache ¶ added in v0.4.0
func SaveCache(e Emote, dec DecodedEmote) error
Types ¶
type BTTVEmoteFetcher ¶ added in v0.0.3
type DecodedEmote ¶ added in v0.4.0
type DecodedEmote struct { ID int `json:"-"` Cols int `json:"cols"` Images []DecodedImage `json:"images"` }
func (DecodedEmote) DisplayUnicodePlaceholder ¶ added in v0.4.0
func (d DecodedEmote) DisplayUnicodePlaceholder() string
func (DecodedEmote) PrepareCommand ¶ added in v0.4.0
func (d DecodedEmote) PrepareCommand() string
type DecodedImage ¶ added in v0.4.0
type EmoteStore ¶ added in v0.4.0
type Replacer ¶ added in v0.4.0
type Replacer struct {
// contains filtered or unexported fields
}
func NewReplacer ¶ added in v0.4.0
func (*Replacer) ConvertEmote ¶ added in v0.4.0
type SevenTVEmoteFetcher ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func NewStore ¶
func NewStore(logger zerolog.Logger, twitchEmotes TwitchEmoteFetcher, sevenTVEmotes SevenTVEmoteFetcher, bttvEmotes BTTVEmoteFetcher) *Store
func (*Store) GetAllForUser ¶
func (*Store) GetByTextAllChannels ¶ added in v0.4.0
type TwitchEmoteFetcher ¶
Click to show internal directories.
Click to hide internal directories.