user_cache

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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 (u *UserCacheImpl) FlushUserInventory(ctx context.Context, userID uint32, inventory *user.Inventory) error

func (*UserCacheImpl) FlushUserRoomData

func (u *UserCacheImpl) FlushUserRoomData(ctx context.Context, userID uint32, data []byte) error

func (*UserCacheImpl) FlushUserUDP

func (u *UserCacheImpl) FlushUserUDP(ctx context.Context, userID uint32, portId uint16, localPort uint16, externalPort uint16, externalIPAddress, localIpAddress uint32) (uint16, error)

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 (u *UserCacheImpl) GetUserByConnection(ctx context.Context, client net.Conn) *user.UserCache

func (*UserCacheImpl) GetUserByID

func (u *UserCacheImpl) GetUserByID(ctx context.Context, id uint32) *user.UserCache

func (*UserCacheImpl) GetUserByUserName

func (u *UserCacheImpl) GetUserByUserName(ctx context.Context, username string) *user.UserCache

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 (u *UserCacheImpl) SetNickname(ctx context.Context, userID uint32, nickname string) error

func (*UserCacheImpl) SetUser

func (u *UserCacheImpl) SetUser(ctx context.Context, data *user.UserCache) error

func (*UserCacheImpl) SetUserChannel

func (u *UserCacheImpl) SetUserChannel(ctx context.Context, userID uint32, serverID, channelID uint8) error

func (*UserCacheImpl) SetUserIngame

func (u *UserCacheImpl) SetUserIngame(ctx context.Context, userID uint32, ingame bool) error

func (*UserCacheImpl) SetUserQuitChannel

func (u *UserCacheImpl) SetUserQuitChannel(ctx context.Context, userID uint32) error

func (*UserCacheImpl) SetUserRoom

func (u *UserCacheImpl) SetUserRoom(ctx context.Context, userID uint32, roomID uint16, team uint8) error

func (*UserCacheImpl) SetUserStatus

func (u *UserCacheImpl) SetUserStatus(ctx context.Context, userID uint32, status uint8) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL