config

package
v0.0.0-...-7c8c02e Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 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 ListenConfig

type ListenConfig struct {
	Http   string `yaml:"http"`
	Socket string `yaml:"socket"`
}

type SystemConfig

type SystemConfig struct {
	Listen ListenConfig `yaml:"listen"`
	Mode   string       `yaml:"mode"`
}

func GetConfig

func GetConfig() *SystemConfig

func LoadConfig

func LoadConfig(file string) (*SystemConfig, error)

LoadConfig 加载系统配置

Jump to

Keyboard shortcuts

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