Documentation
¶
Index ¶
Constants ¶
View Source
const ( SyncChannelName = "blocky_sync" CacheStorePrefix = "blocky:cache:" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheMessage ¶
CacheChannel message
type Client ¶
type Client struct {
CacheChannel chan *CacheMessage
EnabledChannel chan *EnabledMessage
// contains filtered or unexported fields
}
Client for redis communication
func (*Client) GetRedisCache ¶
GetRedisCache reads the redis cache and publish it to the channel
func (*Client) PublishCache ¶
PublishCache publish cache to redis async
func (*Client) PublishEnabled ¶
func (c *Client) PublishEnabled(ctx context.Context, state *EnabledMessage)
Click to show internal directories.
Click to hide internal directories.