Documentation ¶
Index ¶
- Variables
- func NewPool(server string) *redis.Pool
- type Store
- func (p *Store) AddToSet(key string, args ...interface{}) error
- func (p *Store) Close(c redis.Conn)
- func (p *Store) Decr(key string, num uint8) error
- func (p *Store) Del(key string) error
- func (p *Store) DelHashKey(field string) error
- func (p *Store) ExpireKey(key string) error
- func (p *Store) GetHashKey(key string, field string) (string, error)
- func (p *Store) GetInt(key string) (int, error)
- func (p *Store) GetSessionObserverIds(sessionId string) ([]string, error)
- func (p *Store) GetSessionObservers(sessionId string) ([]model.User, error)
- func (p *Store) GetSessionVoterIds(sessionId string) ([]string, error)
- func (p *Store) GetSessionVoters(sessionId string) ([]model.User, error)
- func (p *Store) GetSetLength(key string) (int, error)
- func (p *Store) GetStr(key string) (string, error)
- func (p *Store) GetUser(userId string) (model.User, error)
- func (p *Store) GetUsers(sessionId string, isObserver bool) ([]model.User, error)
- func (p *Store) Incr(key string, num uint8) error
- func (p *Store) RemoveFromSet(key string, val string) error
- func (p *Store) Set(key string, val interface{}) error
- func (p *Store) SetHashKey(key string, args ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Const = struct { SessionState string SessionUsers string SessionObservers string User string VoteCount string Tally string }{ "ballot:session:%s:voting", "ballot:session:%s:users", "ballot:session:%s:observers", "ballot:user:%s", "ballot:session:%s:vote_count", "ballot:session:%s:tally", }
Functions ¶
Types ¶
type Store ¶
type Store struct { Pool *redis.Pool SubConn redis.PubSubConn ServiceSubCon redis.PubSubConn // contains filtered or unexported fields }
func (*Store) DelHashKey ¶
func (*Store) GetSessionObserverIds ¶
func (*Store) GetSessionObservers ¶
func (*Store) GetSessionVoterIds ¶
func (*Store) GetSessionVoters ¶
func (*Store) SetHashKey ¶
Click to show internal directories.
Click to hide internal directories.