config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() error

Load configuration from file

Types

type Config

type Config struct {
	Port             int    `koanf:"port"`
	Host             string `koanf:"host"`
	CompressionLevel int    `koanf:"compressionLevel"`
	EnableCSP        bool   `koanf:"enableCSP"`
	Instance         string `koanf:"instance"`
}

Config is the configuration object

func GetConfig

func GetConfig() Config

GetConfig returns the entire configuration object

Jump to

Keyboard shortcuts

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