config

package
v0.0.0-...-1e118f8 Latest Latest
Warning

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

Go to latest
Published: May 30, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPSettings

type HTTPSettings struct {
	// Bind defines binding interface and port.
	Bind string

	// LogAccess declares of logging of entrypoint access.
	LogAccess bool
}

HTTPSettings .

func FromViperHTTPSettings

func FromViperHTTPSettings(v *viper.Viper) *HTTPSettings

FromViperHTTPSettings fill-up configuration structure from viper.

type LoggerSettings

type LoggerSettings struct {
	// ConsoleLevel defines logger verbosity.
	ConsoleLevel string
}

LoggerSettings .

func FromViperLoggerSettings

func FromViperLoggerSettings(v *viper.Viper) *LoggerSettings

FromViperLoggerSettings fill-up configuration structure from viper.

Jump to

Keyboard shortcuts

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