devices

package
v0.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Factory = &FactoryType{}

Functions

This section is empty.

Types

type Auth

type Auth interface {
	Ensure() (token auth.AuthToken, err error)
}

type Devices

type Devices struct {
	// contains filtered or unexported fields
}

func New

func New(config config.Config) (*Devices, error)

func NewWithAuth

func NewWithAuth(config config.Config, auth Auth) *Devices

func (*Devices) GetConcept

func (this *Devices) GetConcept(conceptId string) (result model.Concept, err error, code int)

func (*Devices) GetDeviceGroup

func (this *Devices) GetDeviceGroup(token auth.AuthToken, groupId string) (result model.DeviceGroup, err error, code int)

func (*Devices) GetDeviceInfosOfDevices

func (this *Devices) GetDeviceInfosOfDevices(deviceIds []string) (devices []model.Device, deviceTypeIds []string, err error, code int)

func (*Devices) GetDeviceInfosOfGroup

func (this *Devices) GetDeviceInfosOfGroup(groupId string) (devices []model.Device, deviceTypeIds []string, err error, code int)

func (*Devices) GetDeviceTypeSelectables

func (this *Devices) GetDeviceTypeSelectables(criteria []model.FilterCriteria) (result []model.DeviceTypeSelectable, err error, code int)

func (*Devices) GetDevicesWithIds

func (this *Devices) GetDevicesWithIds(token auth.AuthToken, ids []string) (result []model.Device, err error, code int)

func (*Devices) GetFunction

func (this *Devices) GetFunction(functionId string) (result model.Function, err error, code int)

func (*Devices) GetService

func (this *Devices) GetService(serviceId string) (result models.Service, err error, code int)

type FactoryType

type FactoryType struct{}

func (*FactoryType) New

func (this *FactoryType) New(config config.Config) (interfaces.Devices, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL