config

package
v0.0.0-...-5f37ea0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MysqlConfig

type MysqlConfig struct {
	Ip     string `yaml:"ip"`
	Port   string `yaml:"port"`
	User   string `yaml:"user"`
	Passwd string `yaml:"passwd"`
}

type ServerConfig

type ServerConfig struct {
	ServerPort  int         `yaml:"server_port"`
	ETCDPort    int         `yaml:"etcd_port"`
	MysqlConfig MysqlConfig `yaml:"mysql_config"`
}

func ReadServerConfig

func ReadServerConfig(configPath string) (*ServerConfig, error)

Jump to

Keyboard shortcuts

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