boot

package
v0.0.0-...-bcc51d9 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2016 License: MIT Imports: 28 Imported by: 0

README

This folder contains the application configuration that runs when the application is first started.

Reference: http://blue-jay.github.io/configuration/

Documentation

Overview

Package boot 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"`
	Email      email.Info    `json:"Email"`
	Form       form.Info     `json:"Form"`
	Generation generate.Info `json:"Generation"`
	MySQL      mysql.Info    `json:"MySQL"`
	Server     server.Info   `json:"Server"`
	Session    session.Info  `json:"Session"`
	Template   view.Template `json:"Template"`
	View       view.Info     `json:"View"`
	Path       string
}

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