app

package
v0.0.0-...-08046e1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2018 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackgroundContextFromFlags

func BackgroundContextFromFlags(
	envFlag string,
	dsnFlag string,
	hstFlag string,
	prtFlag string,
) (context.Context, error)

BackgroundContextFromFlags initializes a background context fully loaded with everything that could be extracted from the flags.

func Build

func Build(
	ctx context.Context,
) (*goji.Mux, error)

Build initializes the app and its web stack.

func Serve

func Serve(
	ctx context.Context,
	mux *goji.Mux,
) error

Serve the goji mux.

Types

type Controller

type Controller struct{}

Controller binds the API

func (*Controller) Bind

func (c *Controller) Bind(
	mux *goji.Mux,
)

Bind registers the API routes.

Jump to

Keyboard shortcuts

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