Documentation ¶
Index ¶
- func WriteJSON(w http.ResponseWriter, v interface{}) error
- type CancelCloser
- type Daemon
- type Handler
- type Route
- func NewDeleteRoute(path string, handler Handler) Route
- func NewGetRoute(path string, handler Handler) Route
- func NewHeadRoute(path string, handler Handler) Route
- func NewOptionsRoute(path string, handler Handler) Route
- func NewPostRoute(path string, handler Handler) Route
- func NewPutRoute(path string, handler Handler) Route
- func NewRoute(method, path string, handler Handler) Route
- type Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteJSON ¶
func WriteJSON(w http.ResponseWriter, v interface{}) error
Types ¶
type CancelCloser ¶
type CancelCloser struct {
Cancel func()
}
func (*CancelCloser) Close ¶
func (c *CancelCloser) Close() error
type Route ¶
func NewDeleteRoute ¶
func NewGetRoute ¶
func NewHeadRoute ¶
func NewOptionsRoute ¶
func NewPostRoute ¶
func NewPutRoute ¶
Click to show internal directories.
Click to hide internal directories.