configuration

package
v0.0.0-...-312d638 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationConfiguration

type ApplicationConfiguration struct {
	Listen      string
	SuppressWWW bool
	ForceHTTPS  bool
}

ApplicationConfiguration struct to handle application config.

type Configuration

type Configuration struct {
	Fiber          fiber.Config
	App            ApplicationConfiguration
	Enabled        map[string]bool
	Logger         logger.Config
	TemplateEngine func(raw string, bind interface{}) (out string, err error)
	Compression    compress.Config
	CORS           cors.Config
	Helmet         helmet.Config
	Hash           hashing.Config
	PublicPrefix   string
	PublicRoot     string
	Public         fiber.Static
	Database       DatabaseConfiguration
}

Configuration struct of each config type

func LoadConfigurations

func LoadConfigurations() (config Configuration, err error)

LoadConfigurations using viper

type DatabaseConfiguration

type DatabaseConfiguration struct {
	Host     string
	Port     int
	Username string
	Password string
	Database string
}

Jump to

Keyboard shortcuts

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