Documentation
¶
Index ¶
- func EmoteCacheDir() (string, error)
- 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) AddUserEmotes(userID string, emotes []Emote)
- func (s *Store) AllEmotesUsableByUser(userID string) []Emote
- 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 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) MarshalEasyJSON ¶ added in v0.5.0
func (v DecodedEmote) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DecodedEmote) PrepareCommand ¶ added in v0.4.0
func (d DecodedEmote) PrepareCommand() string
func (*DecodedEmote) UnmarshalEasyJSON ¶ added in v0.5.0
func (v *DecodedEmote) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
type DecodedImage ¶ added in v0.4.0
type DecodedImage struct { Width int `json:"width"` Height int `json:"height"` EncodedPath string `json:"encoded_path"` DelayInMS int `json:"delay_in_ms"` }
func (DecodedImage) MarshalEasyJSON ¶ added in v0.5.0
func (v DecodedImage) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*DecodedImage) UnmarshalEasyJSON ¶ added in v0.5.0
func (v *DecodedImage) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
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) AddUserEmotes ¶ added in v0.5.1
func (*Store) AllEmotesUsableByUser ¶ added in v0.5.1
func (*Store) GetAllForUser ¶
func (*Store) GetByTextAllChannels ¶ added in v0.4.0
type TwitchEmoteFetcher ¶
Click to show internal directories.
Click to hide internal directories.