options

package
v0.0.0-...-ea047a2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	MaxReconnects   int
	MetricsAddr     string
	ReconnectWait   time.Duration
	ReconcilePeriod time.Duration
	ProbeAddr       string
	ReadyEndpoint   string
	HealthEndpoint  string
}

Args represents the controller command-line arguments.

type Env

type Env struct {
	LogFormat string `envconfig:"APP_LOG_FORMAT" default:"json"`
	LogLevel  string `envconfig:"APP_LOG_LEVEL" default:"warn"`
}

Env represents the controller environment variables.

type Options

type Options struct {
	Args
	Env
}

Options represents the controller options.

func New

func New() *Options

New returns a new Options instance.

func (*Options) Parse

func (o *Options) Parse() error

Parse parses the controller options.

func (Options) String

func (o Options) String() string

String implements the fmt.Stringer interface.

Jump to

Keyboard shortcuts

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