config

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate added in v0.1.3

func Validate(c *Config) []error

Types

type Config

type Config struct {
	Log struct {
		Level string `yaml:"level"`
	} `yaml:"log"`
	Listen struct {
		Addr   string `yaml:"addr"`
		Prefix string `yaml:"prefix"`
	} `yaml:"listen"`
	Clusters []model.Cluster `yaml:"clusters"`
}

func Parse

func Parse(buf []byte) (*Config, error)

Jump to

Keyboard shortcuts

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