Documentation ¶
Index ¶
- Constants
- func LiveMatchesToZValues(liveMatches nscol.LiveMatches) []*redis.Z
- func LiveMatchesToZValuesByTime(liveMatches nscol.LiveMatches) []*redis.Z
- type ErrCommandFailure
- type ErrPubsubFailure
- type PubSub
- type Redis
- func (r *Redis) AddLiveMatches(liveMatches nscol.LiveMatches) error
- func (r *Redis) LiveMatchIDs() (nscol.MatchIDs, error)
- func (r *Redis) PSubscribe(pattern string) (*PubSub, error)
- func (r *Redis) PubLiveMatchStatsAdd(stats nscol.LiveMatchStats) error
- func (r *Redis) PubLiveMatchesAdd(liveMatches nscol.LiveMatches) error
- func (r *Redis) PubLiveMatchesRemove(matchIDs nscol.MatchIDs) error
- func (r *Redis) RemoveLiveMatches(matchIDs nscol.MatchIDs) error
Constants ¶
View Source
const ( KeyLiveMatches = "live_matches" KeyLiveMatchesByTime = "live_matches_by_time" )
View Source
const ( TopicLiveMatchesReplace = "live_matches.replace" TopicLiveMatchesAdd = "live_matches.add" TopicLiveMatchesUpdate = "live_matches.update" TopicLiveMatchesRemove = "live_matches.remove" TopicPatternLiveMatchesAll = "live_matches.*" TopicLiveMatchStatsAdd = "live_match_stats.add" TopicPatternLiveMatchStatsAll = "live_match_stats.*" )
Variables ¶
This section is empty.
Functions ¶
func LiveMatchesToZValues ¶
func LiveMatchesToZValues(liveMatches nscol.LiveMatches) []*redis.Z
func LiveMatchesToZValuesByTime ¶
func LiveMatchesToZValuesByTime(liveMatches nscol.LiveMatches) []*redis.Z
Types ¶
type ErrCommandFailure ¶
type ErrPubsubFailure ¶
type Redis ¶
type Redis struct {
*redis.Client
}
func (*Redis) AddLiveMatches ¶
func (r *Redis) AddLiveMatches(liveMatches nscol.LiveMatches) error
func (*Redis) PubLiveMatchStatsAdd ¶
func (r *Redis) PubLiveMatchStatsAdd(stats nscol.LiveMatchStats) error
func (*Redis) PubLiveMatchesAdd ¶
func (r *Redis) PubLiveMatchesAdd(liveMatches nscol.LiveMatches) error
func (*Redis) PubLiveMatchesRemove ¶
Click to show internal directories.
Click to hide internal directories.