model

package
v0.0.0-...-081712b Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 3 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 {
	// Env struct {
	// 	AgentUrl string `yaml: "agent"`
	// }
	Agent struct {
		Url string `yaml: "url"`
	}
	Redis struct {
		Endpoint string   `yaml: "endpoint"`
		Url      string   `yaml: "url"`
		Port     int      `yaml: "port"`
		Password string   `yaml: "password"`
		Section  []string `yaml: "section"`
	}
}

func GetConfig

func GetConfig() *Config

讀取 conf/monitor.yaml 並回傳 Config Instance

Jump to

Keyboard shortcuts

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