config

package
v0.0.0-...-9896d2c Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CLIFlags []cli.Flag

Functions

This section is empty.

Types

type Config

type Config struct {
	*viper.Viper
}

Config returns the pointer of Viper for service

func NewConfig

func NewConfig() *Config

NewConfig returns the new configration set with all default values

func (*Config) ReadConfigFileFromCLIContext

func (conf *Config) ReadConfigFileFromCLIContext(c *cli.Context) error

ReadConfigFileFromCLIContext update a config based on flgas set in CLI context

func (*Config) SetDefaults

func (conf *Config) SetDefaults()

SetDefaults sets all configuration with the default values

Jump to

Keyboard shortcuts

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