Documentation ¶
Index ¶
Constants ¶
View Source
const ( VERSION = "0.0.17" DEFAULT_STEP = 60 )
View Source
const (
COMMIT = "59272d0"
)
Variables ¶
View Source
var (
ConfigFile string
)
Functions ¶
func ParseConfig ¶
func ParseConfig(cfg string)
Types ¶
type ClusterNode ¶
type ClusterNode struct {
Addrs []string `yaml:"addrs"`
}
CLUSTER NODE
func NewClusterNode ¶
func NewClusterNode(addrs []string) *ClusterNode
type GlobalConfig ¶
type GlobalConfig struct { Debug bool `yaml:"debug"` Listen string `yaml:"listen"` Backends []string `yaml:"backends"` }
func Config ¶
func Config() *GlobalConfig
Click to show internal directories.
Click to hide internal directories.