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: 12 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"`
	Refresh int    `json:"Refresh"`
	SvrAddr string `json:"SvrAddr"`
}

type ServerInfo

type ServerInfo struct {
	proto.ServerInfo
	Client *net.TcpClient `json:"-"`
}

type SvrMgr

type SvrMgr struct {
	sync.RWMutex

	Plazas map[string]*ServerInfo
	Games  map[string]*ServerInfo
	// contains filtered or unexported fields
}

func (*SvrMgr) Add

func (mgr *SvrMgr) Add(svr *ServerInfo) (code int, err error)

func (*SvrMgr) Delete

func (mgr *SvrMgr) Delete(svr *ServerInfo)

func (*SvrMgr) UpdateServerList

func (mgr *SvrMgr) UpdateServerList()

Jump to

Keyboard shortcuts

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