handler

package
v0.0.0-...-13997a8 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommonHandlers = Handlers{
	Handler{
		Name:        "API reference",
		Method:      "get",
		URL:         config.APIURL,
		Description: "print the API reference",
		Handle:      getHandler}}

Functions

func IgnoreAll

func IgnoreAll(out chan string)

func OutWriter

func OutWriter(out chan string, w io.Writer, exit chan int)

Types

type Handler

type Handler struct {
	Name        string
	Method      string
	URL         string
	Description string
	Handle      func(web.C, http.ResponseWriter, *http.Request)
}

func (Handler) Register

func (h Handler) Register() error

type Handlers

type Handlers []Handler

func Concat

func Concat(hss ...Handlers) Handlers

func (Handlers) Register

func (hs Handlers) Register() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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