api

package
v0.0.0-...-4144d9e Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen()

Listen starts api web server

Types

type APIMiddleware

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

APIMiddleware adds some headers (CORS, Content-Type...)

func NewAPIMiddleware

func NewAPIMiddleware(handler http.Handler) *APIMiddleware

NewAPIMiddleware create a new API middleware

func (*APIMiddleware) ServeHTTP

func (m *APIMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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