Documentation
¶
Index ¶
- Variables
- func AddM(key string, value interface{}) bool
- func AddUser(key string, value UserConn) bool
- func AllLen() int
- func DeleteKey(key string)
- func DeleteOUser(key string, value UserConn)
- func DeleteUser(key string, value UserConn) (bool, *time.Time)
- func DeleteValue(value UserConn)
- func GetALlKeyArray() []string
- func GetDelMS(key string) []interface{}
- func GetKeyArray(start int, num int) []string
- func GetLen(key string) int
- func GetUserAddtime(key string) *time.Time
- type Linklist
- func (l *Linklist) Add(value UserConn)
- func (l *Linklist) AddM(value interface{})
- func (l *Linklist) Contains(value UserConn) (bool, *list.Element)
- func (l *Linklist) Delete(value UserConn)
- func (l *Linklist) DeleteAll()
- func (l *Linklist) GetAllArray() []UserConn
- func (l *Linklist) GetArray(start int, num int) []UserConn
- func (l *Linklist) GetDelMS() []interface{}
- func (l *Linklist) GetLock() *sync.RWMutex
- func (l *Linklist) HasLocal() bool
- type Tuple
- type User
- type UserConn
- type UserExMap
- func (m UserExMap) Add(key string, value UserConn) bool
- func (m UserExMap) AddM(key string, value interface{}) bool
- func (m UserExMap) AllLen() int
- func (m UserExMap) Delete(key string, value UserConn) (bool, *time.Time)
- func (m UserExMap) DeleteKey(key string)
- func (m UserExMap) DeleteOvalue(key string, value UserConn)
- func (m UserExMap) DeleteValue(value UserConn)
- func (m UserExMap) Get(key string) *User
- func (m UserExMap) GetALLKey() []string
- func (m UserExMap) GetALLValue() []*User
- func (m UserExMap) GetAddTime(key string) *time.Time
- func (m UserExMap) GetDelMS(key string) []interface{}
- func (m UserExMap) GetKeyArray(start int, num int) []string
- func (m UserExMap) GetSetOneValue(key string, value UserConn) (UserConn, bool)
- func (m UserExMap) GetUserConns(key string) []UserConn
- func (m UserExMap) GetValueArray(start int, num int) []*User
- func (m UserExMap) IsHasKey(key string) bool
- func (m UserExMap) Items() map[string]interface{}
- func (m UserExMap) IterBuffered() <-chan Tuple
- func (m UserExMap) Len(key string) int
- type UserLite
- type UserTCPConn
Constants ¶
This section is empty.
Variables ¶
View Source
var SHARD_COUNT = 32
Functions ¶
func DeleteOUser ¶
func DeleteValue ¶
func DeleteValue(value UserConn)
func GetALlKeyArray ¶
func GetALlKeyArray() []string
func GetKeyArray ¶
func GetUserAddtime ¶
Types ¶
type Linklist ¶ added in v1.0.2
func (*Linklist) GetAllArray ¶ added in v1.0.2
type User ¶ added in v1.0.2
func GetValueArray ¶ added in v1.0.2
func (*User) GetCreateTime ¶ added in v1.0.2
func (*User) GetUserConns ¶ added in v1.0.2
func (*User) SendLocalMessage ¶ added in v1.0.2
type UserConn ¶ added in v1.0.2
type UserExMap ¶
type UserExMap []*userExMap
func NewUserExMap ¶
func NewUserExMap() UserExMap
func (UserExMap) DeleteOvalue ¶
func (UserExMap) DeleteValue ¶
func (UserExMap) GetALLValue ¶
func (UserExMap) GetSetOneValue ¶
func (UserExMap) GetUserConns ¶ added in v1.0.2
func (UserExMap) GetValueArray ¶ added in v1.0.2
func (UserExMap) IterBuffered ¶
type UserLite ¶ added in v1.0.2
type UserLite struct { UserTCPConn LiveTime int UserId string CreateTime *time.Time Type string Local bool }
func NewUserLite ¶ added in v1.0.2
func (*UserLite) GetAddress ¶ added in v1.0.2
func (*UserLite) GetCreateTime ¶ added in v1.0.2
Click to show internal directories.
Click to hide internal directories.