config

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 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 CastwareOperatorVersion

type CastwareOperatorVersion struct {
	GitCommit string
	GitRef    string
	Version   string
}

func (*CastwareOperatorVersion) String

func (c *CastwareOperatorVersion) String() string

type Config

type Config struct {
	LogLevel       LogLevel      `envconfig:"LOG_LEVEL" default:"info"`
	RequestTimeout time.Duration `envconfig:"REQUEST_TIMEOUT" default:"10s"`
}

func GetFromEnvironment

func GetFromEnvironment() (*Config, error)

type LogLevel

type LogLevel logrus.Level

func (*LogLevel) Decode

func (l *LogLevel) Decode(value string) error

func (LogLevel) Level

func (l LogLevel) Level() logrus.Level

Jump to

Keyboard shortcuts

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