config

package
v0.0.0-...-3bc3b58 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfigDefault

func InitConfigDefault()

func InitConfigFromFile

func InitConfigFromFile(filepath string) error

Types

type CheckerConfig

type CheckerConfig struct {
	Type string `yaml:"type"`
	URL  string `yaml:"url"`
}

type DockerConfig

type DockerConfig struct {
	Network string `yaml:"network"`
}

type EagleConfig

type EagleConfig struct {
	Labels             []string `yaml:"labels"`
	*HealthCheckConfig `mapstructure:"health"`
	*EtcdConfig        `mapstructure:"etcd"`
	*ServerConfig      `mapstructure:"server"`
	*DockerConfig      `mapstructure:"docker"`
}
var Conf EagleConfig

type EtcdConfig

type EtcdConfig struct {
	Endpoints []string `yaml:"endpoints"`
	Prefix    string   `yaml:"prefix"`
}

type HealthCheckConfig

type HealthCheckConfig struct {
	Timeout        uint8 `yaml:"timeout"`
	Interval       uint8 `yaml:"interval"`
	*CheckerConfig `mapstructure:"checker"`
}

type ServerConfig

type ServerConfig struct {
	Host string `yaml:"host"`
	Port string `yaml:"port"`
}

Jump to

Keyboard shortcuts

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