game

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CONF   Config
	SERVER ServerMgr
	RdID   int
)

Functions

This section is empty.

Types

type Config

type Config struct {
	common.Server    `yaml:"game"`
	common.Db        `yaml:"DB"`
	common.Etcd      `yaml:"etcd"`
	common.SnowFlake `yaml:"snowflake"`
	common.Raft      `yaml:"raft"`
	common.Nats      `yaml:"nats"`
	common.Stub      `yaml:"stub"`
}

type IServerMgr

type IServerMgr interface {
	Init() bool
	InitDB() bool
	GetServer() *network.ServerSocket
}

type ServerMgr

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

func (*ServerMgr) Init

func (s *ServerMgr) Init() bool

Jump to

Keyboard shortcuts

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