Versions in this module Expand all Collapse all v0 v0.1.0 Mar 26, 2021 Changes in this version + var Forbidden = &Error + var MethodNotAllowed = &Error + var MissingAuthToken = &Error + var NotFound = &Error + var NotModified = &Error + type Error struct + Details interface{} + ErrCode riposo.ErrCode + Info string + Message string + StatusCode int + Text string + func BadRequest(err error) *Error + func InternalError(err error) *Error + func InvalidBody(field, description string) *Error + func InvalidPath(description string) *Error + func InvalidQuery(description string) *Error + func InvalidResource(path riposo.Path) *Error + func MissingResource(id, resourceName string) *Error + func ModifiedMeanwhile(existing *Object) *Error + func (e *Error) Error() string + func (e *Error) HTTPStatus() int + type Heartbeat struct + Cache bool + Permission bool + Storage bool + type Hello struct + Capabilities interface{} + EOS string + HTTPAPIVersion string + ProjectDocs string + ProjectName string + ProjectVersion string + Settings struct{ ... } + URL string + type Object struct + Deleted bool + Extra []byte + ID string + ModTime riposo.Epoch + func (o *Object) DecodeExtra(v interface{}) error + func (o *Object) EncodeExtra(v interface{}) error + func (o *Object) Get(field string) Value + func (o *Object) MarshalJSON() ([]byte, error) + func (o *Object) Patch(x *Object) error + func (o *Object) UnmarshalJSON(p []byte) error + func (o *Object) Update(x *Object) + type Objects struct + Data []*Object + type PermissionSet map[string][]string + func (p PermissionSet) Add(perm, principal string) + type Resource struct + Data *Object + Permissions PermissionSet + StatusCode int + func (r *Resource) HTTPStatus() int + type Value gjson.Result + func ParseValue(s string) Value + func StringValue(s string) Value + func (v *Value) UnmarshalJSON(p []byte) error + func (v Value) Bool() bool + func (v Value) Exists() bool + func (v Value) Float() float64 + func (v Value) Int() int64 + func (v Value) IsNull() bool + func (v Value) MarshalJSON() ([]byte, error) + func (v Value) String() string + func (v Value) Value() interface{}