pkg

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionData added in v0.1.3

type SessionData struct {
	// 会话编号
	SessionId int64
	// 请求到当前节点的会话地址
	Addr string
}

会话数据

type SessionKey

type SessionKey string
const (
	// 公共错误路由
	ONERR = "onErr"

	// 当前玩家
	CUR_PLAYER SessionKey = "player"
	// 当前牌桌
	CUR_DESK SessionKey = "desk"
	// 本地调度
	LOCAL_SCHEDULER SessionKey = "localScheduler"
	// 当前所在牌桌号
	CUR_DESKNO SessionKey = "desk_no"
	// 当前房间
	CUR_ROOM SessionKey = "room"
)

type Set

type Set struct {
	// contains filtered or unexported fields
}

func NewSet added in v0.1.3

func NewSet() *Set

func (*Set) Add

func (s *Set) Add(key string, value interface{})

func (*Set) Contains

func (s *Set) Contains(key string) bool

func (*Set) Get

func (s *Set) Get(key string) (interface{}, bool)

func (*Set) Remove

func (s *Set) Remove(key string)

func (*Set) Value added in v0.1.3

func (s *Set) Value(key string) (interface{}, bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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