config

package
v0.0.0-...-12adc20 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Distribute

type Distribute struct {
	Status bool   `yaml:"status"`
	Way    string `yaml:"way"`
}

type Framework

type Framework struct {
	Env              string `yaml:"env"`
	WorkerPoolSize   uint32 `yaml:"worker_pool_size"`
	MaxWorkerTaskLen uint32 `yaml:"max_worker_task_len"`
	MaxPackageSize   uint32 `yaml:"max_package_size"`
}

type GlobalConfig

type GlobalConfig struct {
	Framework  `yaml:"framework"`
	Message    `yaml:"message"`
	TLV        `yaml:"tlv"`
	Distribute `yaml:"distribute"`
	Redis      `yaml:"redis"`
}
var (
	Global GlobalConfig
)

type Message

type Message struct {
	Format string `yaml:"format"`
	Endian string `yaml:"endian"`
}

type Redis

type Redis struct {
	Addr           string `yaml:"addr"`
	Password       string `yaml:"password"`
	DB             int    `yaml:"db"`
	WorldChannel   string `yaml:"world_channel"`
	ForwardChannel string `yaml:"forward_channel"`
}

type TLV

type TLV struct {
	Type   bool `yaml:"type"`
	Length bool `yaml:"length"`
}

Jump to

Keyboard shortcuts

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