api

package
v0.0.0-...-5da7490 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSON

func JSON(w http.ResponseWriter, code int, v interface{})

Types

type APIHandler

type APIHandler struct {
	Repo      repo.Repo
	Scheduler scheduler.Scheduler
}

func NewAPIHandler

func NewAPIHandler(r repo.Repo, s scheduler.Scheduler) *APIHandler

func (*APIHandler) EventsCreate

func (h *APIHandler) EventsCreate(w http.ResponseWriter, r *http.Request)

func (*APIHandler) EventsDelete

func (h *APIHandler) EventsDelete(w http.ResponseWriter, r *http.Request)

func (*APIHandler) EventsIndex

func (h *APIHandler) EventsIndex(w http.ResponseWriter, r *http.Request)

func (*APIHandler) EventsShow

func (h *APIHandler) EventsShow(w http.ResponseWriter, r *http.Request)

func (*APIHandler) EventsUpdate

func (h *APIHandler) EventsUpdate(w http.ResponseWriter, r *http.Request)

func (*APIHandler) HealthzIndex

func (h *APIHandler) HealthzIndex(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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