Documentation
¶
Index ¶
- func WithAfter(timeAt time.Time) client.InputParam
- func WithAggrMethods(methods ...string) client.InputParam
- func WithBoolValue(boolValue bool) client.InputParam
- func WithLastN(lastN bool) client.InputParam
- func WithLimit(limit int) client.InputParam
- func WithReverse(reverse bool) client.InputParam
- func WithTimeRel(timeRel string, timeAt, endTimeAt time.Time) client.InputParam
- func WithTimeUnit(timeUnit string) client.InputParam
- type App
- func (a *App) Attach(ctx context.Context, deviceID string) error
- func (a *App) ConnectSensor(ctx context.Context, thingID string, refDevices []string) error
- func (a *App) Deattach(ctx context.Context, deviceID string) error
- func (a *App) DeleteThing(ctx context.Context, thingID string) error
- func (a *App) Export(ctx context.Context, params url.Values) ([]byte, error)
- func (a *App) GetAlarms(ctx context.Context, offset, limit int, args map[string][]string) (alarms.Result, error)
- func (a *App) GetDevice(ctx context.Context, id string) (devices.Device, error)
- func (a *App) GetDeviceProfiles(ctx context.Context) []devices.SensorProfile
- func (a *App) GetDevices(ctx context.Context, offset, limit int, args map[string][]string) (devices.DeviceResult, error)
- func (a *App) GetLatestValues(ctx context.Context, thingID string) ([]things.Measurement, error)
- func (a *App) GetMeasurementData(ctx context.Context, id string, params ...client.InputParam) (measurements.Data, error)
- func (a *App) GetMeasurementInfo(ctx context.Context, id string) ([]measurements.Value, error)
- func (a *App) GetSensorStatus(ctx context.Context, id string) ([]devices.SensorStatus, error)
- func (a *App) GetSensors(ctx context.Context, offset, limit int, args map[string][]string) (devices.SensorResult, error)
- func (a *App) GetStatistics(ctx context.Context) (devices.Statistics, error)
- func (a *App) GetTags(ctx context.Context) ([]string, error)
- func (a *App) GetTenants(ctx context.Context) []string
- func (a *App) GetThing(ctx context.Context, id string, params map[string][]string) (things.Thing, error)
- func (a *App) GetThings(ctx context.Context, offset, limit int, params map[string][]string) (things.Result, error)
- func (a *App) GetTypes(ctx context.Context) ([]string, error)
- func (a *App) GetValidSensors(ctx context.Context, urns []string, search string) ([]things.SensorIdentifier, error)
- func (a *App) Import(ctx context.Context, t string, f io.Reader) error
- func (a *App) NewThing(ctx context.Context, t things.Thing) error
- func (a *App) UpdateDevice(ctx context.Context, deviceID string, fields map[string]any) error
- func (a *App) UpdateSensor(ctx context.Context, sensorID string, fields map[string]any) error
- func (a *App) UpdateThing(ctx context.Context, thingID string, fields map[string]any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAggrMethods ¶
func WithAggrMethods(methods ...string) client.InputParam
func WithBoolValue ¶
func WithBoolValue(boolValue bool) client.InputParam
func WithLastN ¶
func WithLastN(lastN bool) client.InputParam
func WithLimit ¶
func WithLimit(limit int) client.InputParam
func WithReverse ¶
func WithReverse(reverse bool) client.InputParam
func WithTimeRel ¶
func WithTimeRel(timeRel string, timeAt, endTimeAt time.Time) client.InputParam
func WithTimeUnit ¶
func WithTimeUnit(timeUnit string) client.InputParam
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) ConnectSensor ¶
func (*App) GetDeviceProfiles ¶
func (a *App) GetDeviceProfiles(ctx context.Context) []devices.SensorProfile
func (*App) GetDevices ¶
func (*App) GetLatestValues ¶
func (*App) GetMeasurementData ¶
func (a *App) GetMeasurementData(ctx context.Context, id string, params ...client.InputParam) (measurements.Data, error)
func (*App) GetMeasurementInfo ¶
func (*App) GetSensorStatus ¶
func (*App) GetSensors ¶
func (*App) GetStatistics ¶
func (*App) GetValidSensors ¶
func (*App) UpdateDevice ¶
func (*App) UpdateSensor ¶
Click to show internal directories.
Click to hide internal directories.