Documentation
¶
Index ¶
- Variables
- type ResourceAPI
- func (api *ResourceAPI) GetResources(w http.ResponseWriter, req *http.Request)
- func (api *ResourceAPI) GetResourcesByID(w http.ResponseWriter, req *http.Request)
- func (api *ResourceAPI) GetResourcesByLabel(w http.ResponseWriter, req *http.Request)
- func (api *ResourceAPI) GetResourcesByProperty(w http.ResponseWriter, req *http.Request)
- func (api *ResourceAPI) GetResourcesByType(w http.ResponseWriter, req *http.Request)
- func (api *ResourceAPI) Initialize(storageRoot string) error
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.
Click to show internal directories.
Click to hide internal directories.