conf

package
v0.0.0-...-5893fcd Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MasterConf *masterConfigs
View Source
var SlaveConf *slaveConfigs

Functions

func InitConf

func InitConf(obj interface{})

InitConf 读取yaml文件 获取配置

func MasterInitConf

func MasterInitConf()

MasterInitConf 初始化master配置

func SlaveInitConf

func SlaveInitConf()

SlaveInitConf 初始化slave配置

Types

type DBPath

type DBPath struct {
	Data        string `yaml:"data"`
	Performance string `yaml:"performance"`
}

DBPath 数据持久化db文件保存路径

type HttpServer

type HttpServer struct {
	Prod string `yaml:"prod"`
}

HttpServer http服务

type Jwt

type Jwt struct {
	Secret string `yaml:"secret"`
	Expire int    `yaml:"expire"`
}

Jwt jwt配置

type MasterInfo

type MasterInfo struct {
	Host string `yaml:"host"`
	Port int    `yaml:"port"`
}

MasterInfo master信息

type TcpServer

type TcpServer struct {
	Prod int `yaml:"prod"`
}

TcpServer tcp服务

type UdpClient

type UdpClient struct {
	Prod string `yaml:"prod"`
}

UdpClient udp客户端

type UdpServer

type UdpServer struct {
	Prod int `yaml:"prod"`
}

UdpServer udp服务

Jump to

Keyboard shortcuts

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