config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EndpointsKey = "endpoints"
	OptionsKey   = "options"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	InitConfig(flags *pflag.FlagSet)
	ReadConfig(configFilePath string) error
}

func CreateConfig

func CreateConfig() Config

type HandlerConfig

type HandlerConfig interface {
	HandlerName() string
	ListenAddress() string
	Port() uint16
	Options() *viper.Viper
}

func CreateHandlerConfig

func CreateHandlerConfig(configMap interface{}, subConfig *viper.Viper) HandlerConfig

Jump to

Keyboard shortcuts

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