config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigHelper

type ConfigHelper struct {
	// contains filtered or unexported fields
}

func NewConfigHelper

func NewConfigHelper(logger logging.Logger, conf *viper.Viper) *ConfigHelper

func (*ConfigHelper) ResolveIntConfig

func (c *ConfigHelper) ResolveIntConfig(ctx context.Context, def int, key string) int

func (*ConfigHelper) ResolveStringConfig

func (c *ConfigHelper) ResolveStringConfig(ctx context.Context, def, key string) string

func (*ConfigHelper) ValidateRampConfig

func (c *ConfigHelper) ValidateRampConfig(ctx context.Context, min, max, steps int) bool

Jump to

Keyboard shortcuts

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