g

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VERSION = "0.0.1"
)

Variables

View Source
var (
	Config *GlobalConfig

	IP string
)
View Source
var CheckResultQueue *list.SafeLinkedList
View Source
var WorkerChan chan int

Functions

func Init

func Init()

func Parse

func Parse(cfg string) error

Types

type GlobalConfig

type GlobalConfig struct {
	Debug  bool     `yaml:"debug"`
	IDC    string   `yaml:"idc"`
	Worker int      `yaml:"worker"`
	Web    *WebConf `yaml:"web"`
}

type WebConf

type WebConf struct {
	Addrs    []string `yaml:"addrs"`
	Interval int      `yaml:"interval"`
	Timeout  int      `yaml:"timeout"`
}

Jump to

Keyboard shortcuts

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