config

package
v1.2.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0, MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindConfigFileFlags

func BindConfigFileFlags(cmd *cobra.Command) *cobra.Command

func BindConfigFlags

func BindConfigFlags(cmd *cobra.Command, flagsToMap flagMap) *cobra.Command

Binds configuration flags to the provided command

func GetFtpFlags

func GetFtpFlags() flagMap

func GetHttpFlags

func GetHttpFlags() flagMap

func GetStartFlags

func GetStartFlags() flagMap

func ParsePortRange

func ParsePortRange(portRange string) (int, int, error)

Types

type Config

type Config struct {
	Server         serverConfig         `koanf:"server"`
	FtpServer      ftpServerConfig      `koanf:"ftp_server"`
	Logging        loggingConfig        `koanf:"logging"`
	Cluster        clusterConfig        `koanf:"cluster"`
	TimeoutWatcher timeoutWatcherConfig `koanf:"timeout_watcher"`
	Recast         recastConfig         `koanf:"recast"`
	Telemetry      telemetryConfig      `koanf:"telemetry"`
	Staller        stallerConfig        `koanf:"staller"`
}

This struct covers the entire application configuration

func NewConfig

func NewConfig(cmd *cobra.Command, flagsUsed flagMap) (*Config, error)

Jump to

Keyboard shortcuts

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