api

package
v0.0.0-...-6eb671c Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Offset           = "0"
	Limit            = "10"
	OrderDir         = "ASC"
	StatusCodeHeader = "X-Status-Code"
	EntityIDHeader   = "X-Entity-ID"
	LocationHeader   = "Location"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityRestAPI

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

func NewEntityRestAPI

func NewEntityRestAPI(em *eram.EntityDbManager) *EntityRestAPI

func (*EntityRestAPI) DeleteEntity

func (api *EntityRestAPI) DeleteEntity(w rest.ResponseWriter, r *rest.Request)

func (*EntityRestAPI) GetAllEntities

func (api *EntityRestAPI) GetAllEntities(w rest.ResponseWriter, r *rest.Request)

func (*EntityRestAPI) GetEntity

func (api *EntityRestAPI) GetEntity(w rest.ResponseWriter, r *rest.Request)

func (*EntityRestAPI) PostEntity

func (api *EntityRestAPI) PostEntity(w rest.ResponseWriter, r *rest.Request)

func (*EntityRestAPI) PutEntity

func (api *EntityRestAPI) PutEntity(w rest.ResponseWriter, r *rest.Request)

Jump to

Keyboard shortcuts

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