Documentation
¶
Index ¶
- type ByAsc
- type Group
- type GroupUser
- type HistoryStore
- type IOrderUser
- type IUser
- type SignUpLog
- type Store
- func (store *Store) AddUser(user IUser) bool
- func (store *Store) DeleteUser(user IUser) bool
- func (store *Store) GetHistory(username string) (*SignUpLog, bool)
- func (store *Store) GetOrderUser(username string) ([]IOrderUser, bool)
- func (store *Store) GetUser(username string) ([]IUser, bool)
- func (store *Store) GetUserNum() int
- func (store *Store) QueryGroupsUser(groupIds ...string) *GroupUser
- func (store *Store) Range(f func(username string, user *StoreUser) bool)
- func (store *Store) RangeGroupUser(groupId string, f func(username string) bool)
- func (store *Store) UserHasConn() bool
- type StoreGroup
- type StoreUser
- type WriteCallBackFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByAsc ¶ added in v0.1.1
type ByAsc []IOrderUser
type GroupUser ¶ added in v0.1.3
type GroupUser struct {
// contains filtered or unexported fields
}
func NewGroupUser ¶ added in v0.1.3
func NewGroupUser() *GroupUser
func (*GroupUser) GetRawUser ¶ added in v0.1.3
type HistoryStore ¶ added in v0.0.6
type HistoryStore struct {
// contains filtered or unexported fields
}
func NewHistoryStore ¶ added in v0.0.6
func NewHistoryStore() *HistoryStore
type IOrderUser ¶ added in v0.1.1
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) DeleteUser ¶
func (*Store) GetHistory ¶ added in v0.0.6
func (*Store) GetOrderUser ¶ added in v0.1.1
func (store *Store) GetOrderUser(username string) ([]IOrderUser, bool)
func (*Store) GetUserNum ¶
func (*Store) QueryGroupsUser ¶ added in v0.1.3
func (*Store) RangeGroupUser ¶
func (*Store) UserHasConn ¶
type StoreGroup ¶
type StoreGroup struct {
// contains filtered or unexported fields
}
func NewStoreGroup ¶
func NewStoreGroup() *StoreGroup
func (*StoreGroup) AddUser ¶
func (storeGroup *StoreGroup) AddUser(user IUser)
func (*StoreGroup) RangeUser ¶
func (storeGroup *StoreGroup) RangeUser(f func(string) bool)
func (*StoreGroup) RemoteUser ¶
func (storeGroup *StoreGroup) RemoteUser(user IUser)
type StoreUser ¶
type StoreUser struct {
// contains filtered or unexported fields
}
func (*StoreUser) GetCreateTime ¶
func (*StoreUser) GetGroupIds ¶
type WriteCallBackFunc ¶
Click to show internal directories.
Click to hide internal directories.