package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Oct 8, 2018
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type ConfFile struct {
Services NodesMap `yaml:"services"`
NoNode struct {
Message string `yaml:"message"`
} `yaml:"no_node"`
}
ConfFile map by svc for node:conf
NewConf makes new config for yml reader
Get map svc:[nodes] and set default method to HEAD (if not defined)
type Node struct {
Server string `yaml:"server"`
Ping string `yaml:"ping"`
Weight int `yaml:"weight"`
Method string `yaml:"method"`
}
Node has a part from config and alive + changed for status monitoring
NodesMap wraps map with svc name as a key and all svc nodes as value
Source Files
¶
Click to show internal directories.
Click to hide internal directories.