app

package
v0.0.0-...-faa7bd5 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(version string)

func Stop

func Stop()

Types

type Config

type Config struct {
	Debug  bool   `json:"Debug"`
	LogDir string `json:"LogDir"`

	SvrID     string `json:"SvrID"`
	SvrPasswd string `json:"SvrPasswd"`

	CenterAddr string `json:"CenterAddr"`

	SvrAddr    string `json:"SvrAddr"`
	StaticAddr string `json:"StaticAddr"`
}

type UserMgr

type UserMgr struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*UserMgr) Add

func (mgr *UserMgr) Add(name string, client *net.TcpClient)

func (*UserMgr) BroadcastGameList

func (mgr *UserMgr) BroadcastGameList()

func (*UserMgr) Delete

func (mgr *UserMgr) Delete(name string)

func (*UserMgr) KickClient

func (mgr *UserMgr) KickClient(client *net.TcpClient, err error)

Jump to

Keyboard shortcuts

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