config

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEnv added in v0.1.3

func LoadEnv(k *koanf.Koanf) error

Types

type Config

type Config struct {
	MetricsPort    int                `koanf:"metrics_port"`
	ProbePort      int                `koanf:"probe_port"`
	LeaderElection bool               `koanf:"leader_election"`
	Domain         string             `koanf:"domain"`
	LoadbalancerIP string             `koanf:"loadbalancer_ip"`
	Cloudflare     *cloudflare.Config `koanf:"cloudflare"`
	Logger         *logger.Config     `koanf:"logger"`
}

func Load

func Load(print bool) *Config

Jump to

Keyboard shortcuts

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