Documentation ¶
Index ¶
- type APIClient
- func (cl *APIClient) Create(obj *usher.Object) *usher.Error
- func (cl *APIClient) Delete(id usher.ObjectID, obj *usher.Object) *usher.Error
- func (cl *APIClient) Exists(id usher.ObjectID) *usher.Error
- func (cl *APIClient) Get(id usher.ObjectID, obj *usher.Object) *usher.Error
- func (cl *APIClient) GetAll(query usher.Query, objList *[]usher.Object) *usher.Error
- func (cl *APIClient) PartialUpdate(id usher.ObjectID, updates []usher.UpdateClause, obj *usher.Object) *usher.Error
- func (cl *APIClient) SetBasicAuth(username string, password string)
- func (cl *APIClient) Update(id usher.ObjectID, newObj *usher.Object) *usher.Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct {
// contains filtered or unexported fields
}
APIClient is the Usher API Client Type.
func (*APIClient) GetAll ¶
GetAll makes a get request on the collection and returns an array of objects matching the query.
func (*APIClient) PartialUpdate ¶
func (*APIClient) SetBasicAuth ¶
SetBasicAuth sets username and password to be used as basic auth credentials.
Click to show internal directories.
Click to hide internal directories.