Documentation ¶
Index ¶
- type UserInfo
- type UserRedisStore
- func (urs *UserRedisStore) AddRoom(uid string, rids ...string) error
- func (urs *UserRedisStore) GenUid() (string, error)
- func (urs *UserRedisStore) Get(uid string) (*UserInfo, error)
- func (urs *UserRedisStore) GetRooms(id string) ([]string, error)
- func (urs *UserRedisStore) RemoveRoom(uid string, rids ...string) error
- func (urs *UserRedisStore) Set(uid string, u *UserInfo) error
- type UserStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserRedisStore ¶
type UserRedisStore struct {
// contains filtered or unexported fields
}
func NewUserRedisStore ¶
func NewUserRedisStore(redisAddr string) *UserRedisStore
func (*UserRedisStore) AddRoom ¶
func (urs *UserRedisStore) AddRoom(uid string, rids ...string) error
func (*UserRedisStore) GenUid ¶
func (urs *UserRedisStore) GenUid() (string, error)
func (*UserRedisStore) RemoveRoom ¶
func (urs *UserRedisStore) RemoveRoom(uid string, rids ...string) error
Click to show internal directories.
Click to hide internal directories.