process

package
v0.0.0-...-2bf1368 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserMgr

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

func (*UserMgr) AddOnlineUser

func (this *UserMgr) AddOnlineUser(up *UserProcessor)

func (*UserMgr) DeleteOnlineUser

func (this *UserMgr) DeleteOnlineUser(userId int)

func (*UserMgr) GetAllOnlineUser

func (this *UserMgr) GetAllOnlineUser() map[int]*UserProcessor

func (*UserMgr) GetOnlineUser

func (this *UserMgr) GetOnlineUser(userId int) (up *UserProcessor, err error)

type UserProcessor

type UserProcessor struct {
	Conn net.Conn

	UserId int
}

func (*UserProcessor) ServerLogin

func (this *UserProcessor) ServerLogin(mes *message.Message) (err error)

func (*UserProcessor) ServerRegister

func (this *UserProcessor) ServerRegister(mes *message.Message) (err error)

Jump to

Keyboard shortcuts

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