Documentation ¶
Index ¶
- type UserCacheImpl
- func (u *UserCacheImpl) DeleteUserByConnection(ctx context.Context, client net.Conn)
- func (u *UserCacheImpl) DeleteUserByID(ctx context.Context, id uint32)
- func (u *UserCacheImpl) DeleteUserByName(ctx context.Context, username string)
- func (u *UserCacheImpl) FlushUserInventory(ctx context.Context, userID uint32, inventory *user.Inventory) error
- func (u *UserCacheImpl) FlushUserRoomData(ctx context.Context, userID uint32, data []byte) error
- func (u *UserCacheImpl) FlushUserUDP(ctx context.Context, userID uint32, portId uint16, localPort uint16, ...) (uint16, error)
- func (u *UserCacheImpl) GetChannelNoRoomUsers(ctx context.Context, serverID, channelID uint8) []uint32
- func (u *UserCacheImpl) GetChannelUsers(ctx context.Context, serverID, channelID uint8) []uint32
- func (u *UserCacheImpl) GetUserByConnection(ctx context.Context, client net.Conn) *user.UserCache
- func (u *UserCacheImpl) GetUserByID(ctx context.Context, id uint32) *user.UserCache
- func (u *UserCacheImpl) GetUserByUserName(ctx context.Context, username string) *user.UserCache
- func (u *UserCacheImpl) QuitUserRoom(ctx context.Context, userID uint32) error
- func (u *UserCacheImpl) ResetAssistNum(ctx context.Context, userID uint32) error
- func (u *UserCacheImpl) ResetDeadNum(ctx context.Context, userID uint32) error
- func (u *UserCacheImpl) ResetKillNum(ctx context.Context, userID uint32) error
- func (u *UserCacheImpl) SetNickname(ctx context.Context, userID uint32, nickname string) error
- func (u *UserCacheImpl) SetUser(ctx context.Context, data *user.UserCache) error
- func (u *UserCacheImpl) SetUserChannel(ctx context.Context, userID uint32, serverID, channelID uint8) error
- func (u *UserCacheImpl) SetUserIngame(ctx context.Context, userID uint32, ingame bool) error
- func (u *UserCacheImpl) SetUserQuitChannel(ctx context.Context, userID uint32) error
- func (u *UserCacheImpl) SetUserRoom(ctx context.Context, userID uint32, roomID uint16, team uint8) error
- func (u *UserCacheImpl) SetUserStatus(ctx context.Context, userID uint32, status uint8) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserCacheImpl ¶
type UserCacheImpl struct {
// contains filtered or unexported fields
}
func NewUserCacheImpl ¶
func NewUserCacheImpl() *UserCacheImpl
func (*UserCacheImpl) DeleteUserByConnection ¶
func (u *UserCacheImpl) DeleteUserByConnection(ctx context.Context, client net.Conn)
func (*UserCacheImpl) DeleteUserByID ¶
func (u *UserCacheImpl) DeleteUserByID(ctx context.Context, id uint32)
func (*UserCacheImpl) DeleteUserByName ¶
func (u *UserCacheImpl) DeleteUserByName(ctx context.Context, username string)
func (*UserCacheImpl) FlushUserInventory ¶
func (*UserCacheImpl) FlushUserRoomData ¶
func (*UserCacheImpl) FlushUserUDP ¶
func (*UserCacheImpl) GetChannelNoRoomUsers ¶
func (u *UserCacheImpl) GetChannelNoRoomUsers(ctx context.Context, serverID, channelID uint8) []uint32
func (*UserCacheImpl) GetChannelUsers ¶
func (u *UserCacheImpl) GetChannelUsers(ctx context.Context, serverID, channelID uint8) []uint32
func (*UserCacheImpl) GetUserByConnection ¶
func (*UserCacheImpl) GetUserByID ¶
func (*UserCacheImpl) GetUserByUserName ¶
func (*UserCacheImpl) QuitUserRoom ¶
func (u *UserCacheImpl) QuitUserRoom(ctx context.Context, userID uint32) error
func (*UserCacheImpl) ResetAssistNum ¶
func (u *UserCacheImpl) ResetAssistNum(ctx context.Context, userID uint32) error
func (*UserCacheImpl) ResetDeadNum ¶
func (u *UserCacheImpl) ResetDeadNum(ctx context.Context, userID uint32) error
func (*UserCacheImpl) ResetKillNum ¶
func (u *UserCacheImpl) ResetKillNum(ctx context.Context, userID uint32) error
func (*UserCacheImpl) SetNickname ¶
func (*UserCacheImpl) SetUserChannel ¶
func (*UserCacheImpl) SetUserIngame ¶
func (*UserCacheImpl) SetUserQuitChannel ¶
func (u *UserCacheImpl) SetUserQuitChannel(ctx context.Context, userID uint32) error
func (*UserCacheImpl) SetUserRoom ¶
func (*UserCacheImpl) SetUserStatus ¶
Click to show internal directories.
Click to hide internal directories.