api

package
v0.0.0-...-eb49f3c Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNumArgs = errors.New("wrong number of args")

Functions

This section is empty.

Types

type ResourceAPI

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

func NewResourceAPI

func NewResourceAPI(factory zebra.ResourceFactory) *ResourceAPI

func (*ResourceAPI) GetResources

func (api *ResourceAPI) GetResources(w http.ResponseWriter, req *http.Request)

func (*ResourceAPI) GetResourcesByID

func (api *ResourceAPI) GetResourcesByID(w http.ResponseWriter, req *http.Request)

func (*ResourceAPI) GetResourcesByLabel

func (api *ResourceAPI) GetResourcesByLabel(w http.ResponseWriter, req *http.Request)

func (*ResourceAPI) GetResourcesByProperty

func (api *ResourceAPI) GetResourcesByProperty(w http.ResponseWriter, req *http.Request)

func (*ResourceAPI) GetResourcesByType

func (api *ResourceAPI) GetResourcesByType(w http.ResponseWriter, req *http.Request)

func (*ResourceAPI) Initialize

func (api *ResourceAPI) Initialize(storageRoot string) error

Set up store and query store given storage root.

Jump to

Keyboard shortcuts

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