configLoader

package
v0.0.0-...-3ba4ce3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfiguration

func LoadConfiguration()

LoadConfiguration loads the config.json file

Types

type Configuration

type Configuration struct {
	URL          string `json:"url" validate:"required,url"`
	SMTPURL      string `json:"smtpUrl" validate:"required,url"`
	SMTPPort     int    `json:"smtpPort" validate:"required"`
	SMTPUser     string `json:"smtpUser" validate:"required"`
	SMTPPassword string `json:"smtpPassword" validate:"required"`
	SMTPFrom     string `json:"stmpFrom" validate:"required,email"`
	JWTSecret    string `json:"jwtSecret" validate:"required"`
	Interface    string `json:"interface" validate:"required,url"`
	DBHost       string `json:"dbHost" validate:"required,url"`
}

Configuration describes the main CMS configuration structure

func GetConfig

func GetConfig() *Configuration

GetConfig returns the current configuration

Jump to

Keyboard shortcuts

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