Documentation
¶
Index ¶
- type ByAsc
- type Group
- type GroupUser
- type History
- type HistoryMessage
- type HistoryStore
- type IOrderUser
- type IUser
- type Store
- func (store *Store) AddUser(user IUser) bool
- func (store *Store) AllGroupInfo() map[string]int
- func (store *Store) DeleteUser(user IUser) bool
- func (store *Store) GetOrderUser(username string) []IOrderUser
- func (store *Store) GetUser(username string) ([]IUser, bool)
- func (store *Store) GetUserCreateTime(username string) *time.Time
- func (store *Store) GetUserNum() int
- func (store *Store) HasLocalUser(username string) bool
- func (store *Store) QueryGroupsUser(groupIds ...string) *GroupUser
- func (store *Store) Range(f func(username string, user *StoreUser) bool)
- func (store *Store) RangeAllUser(f func(username string) bool)
- func (store *Store) RangeGroupUser(groupId string, f func(username string) bool)
- func (store *Store) UserHasConn() bool
- type StoreGroup
- type StoreUser
- type TextMessage
- type TextMessageMessage
- 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 HistoryMessage ¶ added in v0.1.16
type HistoryMessage struct { Username string OnlineTime string OfflineTime string LastLiveTime string LastMessage []*TextMessageMessage }
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
func (*HistoryStore) FlashLiveTime ¶ added in v0.1.16
func (h *HistoryStore) FlashLiveTime(user IUser)
func (*HistoryStore) RecordMessage ¶ added in v0.1.16
func (h *HistoryStore) RecordMessage(msg message.IMessage)
type IOrderUser ¶ added in v0.1.1
type IUser ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AllGroupInfo ¶ added in v0.2.5
func (*Store) DeleteUser ¶
func (*Store) GetOrderUser ¶ added in v0.1.1
func (store *Store) GetOrderUser(username string) []IOrderUser
func (*Store) GetUserCreateTime ¶ added in v0.1.32
func (*Store) GetUserNum ¶
func (*Store) HasLocalUser ¶ added in v0.1.27
func (*Store) QueryGroupsUser ¶ added in v0.1.3
func (*Store) RangeAllUser ¶ added in v0.1.27
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) GetNum ¶ added in v0.2.5
func (storeGroup *StoreGroup) GetNum() int
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 TextMessage ¶ added in v0.1.16
type TextMessageMessage ¶ added in v0.1.16
type WriteCallBackFunc ¶
Click to show internal directories.
Click to hide internal directories.