Documentation ¶
Index ¶
- func DefaultBaseDeviceRepoFactory(token string, deviceRepoUrl string, permissionsUrl string) interfaces.Devices
- func DefaultDeviceProvider(token string, baseUrl string, deviceId string) (result models.Device, err error, code int)
- type AuthFromToken
- type BaseDeviceRepoFactory
- type DeviceProvider
- type DeviceRepo
- func (this *DeviceRepo) GetConcept(token auth.Token, conceptId string) (result model.Concept, err error, code int)
- func (this *DeviceRepo) GetDevice(token auth.Token, deviceId string) (result models.Device, err error, code int)
- func (this *DeviceRepo) GetDeviceInfosOfDevices(token auth.Token, deviceIds []string) (devices []model.Device, deviceTypeIds []string, err error, code int)
- func (this *DeviceRepo) GetDeviceInfosOfGroup(token auth.Token, groupId string) (devices []model.Device, deviceTypeIds []string, err error, code int)
- func (this *DeviceRepo) GetDeviceTypeSelectables(token auth.Token, criteria []model.FilterCriteria) (result []model.DeviceTypeSelectable, err error, code int)
- func (this *DeviceRepo) GetFunction(token auth.Token, functionId string) (result model.Function, err error, code int)
- func (this *DeviceRepo) GetService(token auth.Token, serviceId string) (result models.Service, err error, code int)
- func (this *DeviceRepo) WithPresetToken(token auth.Token) interfaces.Devices
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultBaseDeviceRepoFactory ¶
func DefaultBaseDeviceRepoFactory(token string, deviceRepoUrl string, permissionsUrl string) interfaces.Devices
Types ¶
type AuthFromToken ¶
type AuthFromToken struct {
Token string
}
type BaseDeviceRepoFactory ¶
type BaseDeviceRepoFactory = func(token string, deviceRepoUrl string, permissionsSearchUrl string) interfaces.Devices
type DeviceProvider ¶
type DeviceRepo ¶
type DeviceRepo struct {
// contains filtered or unexported fields
}
func New ¶
func New(config syncconf.Config, baseRepFactory BaseDeviceRepoFactory, deviceProvider DeviceProvider) (*DeviceRepo, error)
func (*DeviceRepo) GetConcept ¶
func (*DeviceRepo) GetDeviceInfosOfDevices ¶
func (*DeviceRepo) GetDeviceInfosOfGroup ¶
func (*DeviceRepo) GetDeviceTypeSelectables ¶
func (this *DeviceRepo) GetDeviceTypeSelectables(token auth.Token, criteria []model.FilterCriteria) (result []model.DeviceTypeSelectable, err error, code int)
func (*DeviceRepo) GetFunction ¶
func (*DeviceRepo) GetService ¶
func (*DeviceRepo) WithPresetToken ¶
func (this *DeviceRepo) WithPresetToken(token auth.Token) interfaces.Devices
Click to show internal directories.
Click to hide internal directories.