config

package
Version: v0.0.0-...-f2f702e Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Database *db.MySQLInfo  `json:"database"`
	Server   *server.Server `json:"server"`

	View *view.View `json:"view"`

	Session *session.Session `json:"session"`
	Email   *email.SMTPInfo  `json:"email"`

	Template      *view.Template `json:"template"`
	TemplateAdmin *view.Template `json:"template_admin"`
}

Configuration struct

func Initialize

func Initialize(configFile string) *Configuration

Initialize the configuration

func Load

func Load(configFile string) (*Configuration, error)

Load a JSON file making a Configuration pointer

Source Files

Jump to

Keyboard shortcuts

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