Documentation ¶
Index ¶
- Constants
- Variables
- func AuthTokenValues(ctx context.Context, token string) (string, error)
- func GetCache(ctx context.Context, collection, sha1 string) ([]interface{}, error)
- func GetLocker() *redislock.Client
- func InvalidateCache(ctx context.Context, invalidateKey, collection, objectID, commonIndex string, ...) (int64, error)
- func InvalidateCommonIndexCache(ctx context.Context, collection, commonIndex string) (int64, error)
- func Publish(ctx context.Context, channel string, data interface{}) error
- func ReloadScripts() error
- func SetCache(ctx context.Context, collection, sha1, commonIndex string, args ...string) (int64, error)
- func Subscribe(ctx context.Context, ch chan []byte, subscribeTo ...string)
- type EventApiV1ChannelEmotes
- type EventApiV1ChannelEmotesEmote
- type EventApiV1ChannelEmotesEmoteOwner
- type Message
- type PubSub
- type PubSubPayloadUserEmotes
- type StringCmd
- type StringStringMapCmd
- type Z
Constants ¶
View Source
const ErrNil = redis.Nil
Variables ¶
View Source
var Client *redis.Client
View Source
var RateLimitScriptSHA1 string
Functions ¶
func InvalidateCache ¶
func ReloadScripts ¶
func ReloadScripts() error
Types ¶
type EventApiV1ChannelEmotes ¶
type EventApiV1ChannelEmotesEmote ¶
type EventApiV1ChannelEmotesEmote struct { Name string `json:"name"` Visibility int32 `json:"visibility"` MIME string `json:"mime"` Tags []string `json:"tags"` Width [4]int16 `json:"width"` Height [4]int16 `json:"height"` Animated bool `json:"animated"` URLs [][]string `json:"urls"` Owner EventApiV1ChannelEmotesEmoteOwner `json:"owner"` }
type PubSubPayloadUserEmotes ¶
type StringStringMapCmd ¶
type StringStringMapCmd = redis.StringStringMapCmd
Click to show internal directories.
Click to hide internal directories.