api

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2017 License: Apache-2.0 Imports: 12 Imported by: 33

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleStatus

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

Status Handler

Types

type EventSubscriptionAPI added in v0.2.0

type EventSubscriptionAPI struct {
	Conf     *configuration.Configuration
	EventBus *eb.EventBus
}

func (*EventSubscriptionAPI) Callback added in v0.2.0

func (sub *EventSubscriptionAPI) Callback(w http.ResponseWriter, r *http.Request)

func (*EventSubscriptionAPI) Notify added in v0.2.20

func (sub *EventSubscriptionAPI) Notify(payload []byte)

type ServiceAPI added in v0.2.0

type ServiceAPI struct {
	Config  *conf.Configuration
	Storage service.Storage
}

func (*ServiceAPI) All added in v0.2.0

func (d *ServiceAPI) All(w http.ResponseWriter, r *http.Request)

func (*ServiceAPI) Create added in v0.2.0

func (d *ServiceAPI) Create(w http.ResponseWriter, r *http.Request)

func (*ServiceAPI) Delete added in v0.2.0

func (d *ServiceAPI) Delete(params martini.Params, w http.ResponseWriter, r *http.Request)

func (*ServiceAPI) Put added in v0.2.0

func (d *ServiceAPI) Put(params martini.Params, w http.ResponseWriter, r *http.Request)

type StateAPI added in v0.2.0

type StateAPI struct {
	Config  *configuration.Configuration
	Storage service.Storage
}

func (*StateAPI) Get added in v0.2.0

func (state *StateAPI) Get(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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