httpd

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2016 License: MIT Imports: 11 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 APIWrapper added in v0.2.4

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

APIWrapper wraps API func including cli arg

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)

APIHandler represents API function w/ cli arg

type Route

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

Route represents a HTTP route

type TTracker added in v0.2.6

type TTracker struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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