http

package
v0.0.0-...-7e4321c Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2015 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleError

func HandleError(err error, w http.ResponseWriter)

func MethodNotAllowed

func MethodNotAllowed(w http.ResponseWriter, r *http.Request)

Types

type API

type API struct {
	Events chan *state.Event
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI(store state.Storer) *API

func (*API) Serve

func (a *API) Serve(addr string)

type EventsHandler

type EventsHandler struct {
	NewEvents chan *state.Event
	// contains filtered or unexported fields
}

func (*EventsHandler) Create

func (e *EventsHandler) Create(w http.ResponseWriter, r *http.Request)

func (*EventsHandler) Get

func (*EventsHandler) List

func (e *EventsHandler) List(w http.ResponseWriter, r *http.Request)

type TasksHandler

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

func (*TasksHandler) Delete

func (t *TasksHandler) Delete(w http.ResponseWriter, r *http.Request)

func (*TasksHandler) Get

func (*TasksHandler) List

func (t *TasksHandler) List(w http.ResponseWriter, r *http.Request)

func (*TasksHandler) Set

Jump to

Keyboard shortcuts

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