configuration

package
v0.0.0-...-1063e65 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvPrefix = "GOFSUD"
)

Variables

View Source
var (
	ServiceName    = "unknown"
	ServiceVersion = "X.X.X"
)

Build information. Populated at build-time.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	ServiceName    string
	ServiceVersion string
	ServicePort    int       `split_words:"true" default:"8080"`
	LogLevel       log.Level `split_words:"true" default:"DEBUG"`
	LogPrettyPrint bool      `split_words:"true" default:"true"`
	Directory      string    `split_words:"true" default:"/tmp"`
}

func LoadConfiguration

func LoadConfiguration() (configuration Configuration, err error)

func (Configuration) GetAPIVersion

func (c Configuration) GetAPIVersion() string

Jump to

Keyboard shortcuts

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