config

package
v0.0.0-...-a9cd8ba Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfFile

type ConfFile struct {
	Services map[string]ServiceConfig `yaml:"services"`
}

ConfFile contains a list service configurations

func NewConf

func NewConf(reader io.Reader) *ConfFile

NewConf makes new config for yml reader

type ServiceConfig

type ServiceConfig struct {
	Host        string `yaml:"host"`
	HealthCheck string `yaml:"healthcheck"`
	Weight      int    `yaml:"weight"`
}

ServiceConfig contains single host configuration

Jump to

Keyboard shortcuts

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