app

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	// contains filtered or unexported fields
}

Application top level properties and methods for running Brizo

func New

func New() *Application

New creates a new application instance

func (*Application) Initialize

func (app *Application) Initialize() error

Initialize makes sure the app is ready to run

func (*Application) Server

func (app *Application) Server() error

Server starts the HTTP server for the app

type ChecksHealth

type ChecksHealth func() error

ChecksHealth interface for health checking components

type RunsMigrations

type RunsMigrations func() error

RunsMigrations interface for running migrations

type Server

type Server func(string, http.Handler) error

Server is a function that starts an HTTP listener and handles requests using the provided handler

Directories

Path Synopsis
handlers
api
jsonutil
Package jsonutil provides support functions for dealing with json responses and specificially focuses on handling errors.
Package jsonutil provides support functions for dealing with json responses and specificially focuses on handling errors.
web

Jump to

Keyboard shortcuts

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