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 SubscribeConfig

type SubscribeConfig struct {
	Url       string `yaml:"url"`
	Branch    string `yaml:"branch"`
	Action    string `yaml:"action"`
	Directory string `yaml:"directory"`
}

type SystemConfig

type SystemConfig struct {
	Server     string            `yaml:"server"`
	HttpListen string            `yaml:"http"`
	Subscribes []SubscribeConfig `yaml:"subscribes"`
	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