daemon

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2016 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug bool
View Source
var Host string
View Source
var Port int

Functions

func Handle

func Handle(handlers ...Handler) func(http.ResponseWriter, *http.Request)

func Init

func Init(c *cli.Context) error

func SetHeaders

func SetHeaders(w http.ResponseWriter, r *http.Request)

Types

type Handler

type Handler struct {
	*env.Env
	H func(env *env.Env, w http.ResponseWriter, r *http.Request) error
}

func (Handler) ServeHTTP

func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) error

type Route

type Route struct {
}

func (Route) Init

func (r Route) Init(env *env.Env)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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