server

package
v0.0.0-...-90356a5 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2019 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Go

func Go(cfg *config.Config, c chan int)

func JSONDecorator

func JSONDecorator(handler JSONHandlerFunc) http.HandlerFunc

wraps JSONHanderFunc functions and provide JSON Content-type, marshaling, and HTTP error code functionality

Types

type JSONHandlerFunc

type JSONHandlerFunc func(http.ResponseWriter, *http.Request) (interface{}, error)

a specialized version of http.HandlerFunc that returns (interface{}, error) and is intended to be wrapped by JSONDecorator

Jump to

Keyboard shortcuts

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