config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: BSD-3-Clause Imports: 6 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 {
	Listener Listener                  `mapstructure:"listener"`
	Targets  map[string]*target.Target `mapstructure:"targets"`
	Vault    vault.Vault               `mapstructure:"vault"`
	Verbose  bool                      `mapstructure:"verbose"`
}

func (*Config) HasMissingSecrets

func (c *Config) HasMissingSecrets() bool

func (*Config) LoadConfig

func (c *Config) LoadConfig(configName string) (err error)

func (*Config) ProcessConfig

func (c *Config) ProcessConfig() (err error)

type Listener

type Listener struct {
	Address string  `mapstructure:"address" yaml:"address"`
	Port    uint16  `mapstructure:"port" yaml:"port"`
	TLS     tls.TLS `mapstructure:"tls" yaml:",omitempty"`
}

Jump to

Keyboard shortcuts

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