httpd

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package httpd provides web service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func API

func API(w http.ResponseWriter, r *http.Request, cfg cli.Config)

API handles API routes

func APIWarpper added in v0.2.3

func APIWarpper(handler APIHandler, cfg cli.Config) func(w http.ResponseWriter, r *http.Request)

func Run

func Run(cfg cli.Config)

Run starts web service

Types

type APIHandler added in v0.2.3

type APIHandler func(w http.ResponseWriter, r *http.Request, cfg cli.Config)

type Route

type Route struct {
	Name        string
	Method      string
	Path        string
	HandlerFunc http.HandlerFunc
}

Route represents a HTTP route

Jump to

Keyboard shortcuts

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