app

package
v0.0.0-...-83206fe Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Config  Config
	Storage db.Storage
	// contains filtered or unexported fields
}

func NewApp

func NewApp() *App

func (*App) Add

func (a *App) Add(pattern string, handler http.Handler, methods ...string)

func (*App) Start

func (a *App) Start()

type Config

type Config struct {
	Addr      string `envconfig:"ADDR,default=:9000,optional"`
	Key       string `envconfig:"KEY,optional"`
	PublicDir string `envconfig:"DIR,default=public/,optional"`
	Conn      string `envconfig:"CONN,default=host=/var/run/postgresql sslmode=disable user=hss dbname=hss password=hss,optional"`
}

func ReadConfig

func ReadConfig() Config

Jump to

Keyboard shortcuts

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