service_cnf

package
v0.0.0-...-bd0de05 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceConfig

type ServiceConfig struct {
	AppId       string
	ServiceType proto.ServiceType
	MapId       int32
	Port        int32
	Url         string // 127.0.0.1:1234
	MaxOnline   int32
	StartMs     int64 // 开服时间
	IsDevelop   bool
}

func GetInstance

func GetInstance() *ServiceConfig

func NewServiceConfig

func NewServiceConfig() *ServiceConfig

func (*ServiceConfig) ToGrpcData

func (p *ServiceConfig) ToGrpcData(online int32) base_data.ServiceData

Jump to

Keyboard shortcuts

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