bootstrap

package
v0.0.0-...-b76ee76 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2016 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Package bootstrap handles the initialization of the web components.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterServices

func RegisterServices(config *Info)

RegisterServices sets up all the components.

func SetUpMiddleware

func SetUpMiddleware(h http.Handler) http.Handler

SetUpMiddleware contains the middleware that applies to every request.

Types

type Info

type Info struct {
	Asset    asset.Info    `json:"Asset"`
	Database database.Info `json:"Database"`
	Email    email.Info    `json:"Email"`
	Server   server.Info   `json:"Server"`
	Session  session.Info  `json:"Session"`
	Template view.Template `json:"Template"`
	View     view.Info     `json:"View"`
}

Info contains the application settings.

func LoadConfig

func LoadConfig(configFile string) *Info

LoadConfig reads the configuration file.

func (*Info) ParseJSON

func (c *Info) ParseJSON(b []byte) error

ParseJSON unmarshals bytes to structs

Jump to

Keyboard shortcuts

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