option

package
v3.7.2-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RegionMysql   RegionMysql    `yaml:"region_db"`
	Kubernets     Kubernets      `yaml:"kube"`
	RegionAPI     region.APIConf `yaml:"region_api"`
	DockerLogPath string         `yaml:"docker_log_path"`
}

Config Config

func GetConfig

func GetConfig() Config

GetConfig GetConfig

func LoadConfig

func LoadConfig(ctx *cli.Context) (Config, error)

LoadConfig 加载配置

type Kubernets

type Kubernets struct {
	Master string `yaml:"master"`
}

Kubernets Kubernets

type RegionMysql

type RegionMysql struct {
	URL      string `yaml:"url"`
	Pass     string `yaml:"pass"`
	User     string `yaml:"user"`
	Database string `yaml:"database"`
}

RegionMysql RegionMysql

Jump to

Keyboard shortcuts

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