config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Random   = "random"
	NginxWRR = "weighted_round_robin"
	LVSWRR   = "lvs_weighted_round_robin"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Listen   []string `toml:"listen"`
	Upstream upstream `toml:"upstream"`
	Other    others   `toml:"others"`
}

func LoadConfig

func LoadConfig(path string) (*Config, error)

type UpstreamDetail

type UpstreamDetail struct {
	URL    string `toml:"url"`
	Weight int32  `toml:"weight"`
}

Jump to

Keyboard shortcuts

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