Documentation
¶
Index ¶
- Variables
- type ApiResponse
- type Client
- func (c *Client) AdminURL() string
- func (c *Client) AlarmsURL() string
- func (c *Client) Delete(ctx context.Context, baseURL string) error
- func (c *Client) DeviceManagementURL() string
- func (c *Client) Get(ctx context.Context, baseURL, path string, params url.Values) (*ApiResponse, error)
- func (c *Client) MeasurementURL() string
- func (c *Client) Patch(ctx context.Context, baseURL, id string, body []byte) error
- func (c *Client) Post(ctx context.Context, baseURL string, body []byte) error
- func (c *Client) Put(ctx context.Context, baseURL string, body []byte) error
- func (c *Client) SensorsManagementURL() string
- func (c *Client) ThingManagementURL() string
- type InputParam
- func WithAfter(timeAt time.Time) InputParam
- func WithAggrMethods(methods ...string) InputParam
- func WithBoolValue(boolValue bool) InputParam
- func WithLastN(lastN bool) InputParam
- func WithLimit(limit int) InputParam
- func WithReverse(reverse bool) InputParam
- func WithTimeRel(timeRel string, timeAt, endTimeAt time.Time) InputParam
- func WithTimeUnit(timeUnit string) InputParam
- type Links
- type Location
- type Meta
- type Metadata
- type Resource
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConflict = fmt.Errorf("conflict")
View Source
var ErrNotFound = fmt.Errorf("not found")
Functions ¶
This section is empty.
Types ¶
type ApiResponse ¶
type ApiResponse struct {
Meta *Meta `json:"meta,omitempty"`
Data json.RawMessage `json:"data"`
Links *Links `json:"links,omitempty"`
Included []Resource `json:"included,omitempty"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DeviceManagementURL ¶
func (*Client) MeasurementURL ¶
func (*Client) SensorsManagementURL ¶
func (*Client) ThingManagementURL ¶
type InputParam ¶
func WithAfter ¶
func WithAfter(timeAt time.Time) InputParam
func WithAggrMethods ¶
func WithAggrMethods(methods ...string) InputParam
func WithBoolValue ¶
func WithBoolValue(boolValue bool) InputParam
func WithLastN ¶
func WithLastN(lastN bool) InputParam
func WithLimit ¶
func WithLimit(limit int) InputParam
func WithReverse ¶
func WithReverse(reverse bool) InputParam
func WithTimeRel ¶
func WithTimeRel(timeRel string, timeAt, endTimeAt time.Time) InputParam
func WithTimeUnit ¶
func WithTimeUnit(timeUnit string) InputParam
Click to show internal directories.
Click to hide internal directories.