config

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 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 {
	Peers map[string]Peer `yaml:"peers"`
}

func ReadConfig

func ReadConfig(name, path string) (Config, error)

type Peer

type Peer struct {
	Address  string `yaml:"address"`
	Priority int    `yaml:"priority"`
	Weight   int    `yaml:"weight"`
}

Jump to

Keyboard shortcuts

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