devicerepo

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceRepo

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

func New

func New(config RepoConfig, auth *auth.Auth) (result *DeviceRepo, err error)

func (*DeviceRepo) GetAspectNode

func (this *DeviceRepo) GetAspectNode(id string) (result models.AspectNode, err error)

func (*DeviceRepo) GetCharacteristic

func (this *DeviceRepo) GetCharacteristic(id string) (result models.Characteristic, err error)

func (*DeviceRepo) GetConcept

func (this *DeviceRepo) GetConcept(id string) (result models.Concept, err error)

func (*DeviceRepo) GetConceptIdOfFunction

func (this *DeviceRepo) GetConceptIdOfFunction(id string) string

func (*DeviceRepo) GetDeviceType

func (this *DeviceRepo) GetDeviceType(id string) (result models.DeviceType, err error)

func (*DeviceRepo) GetFunction

func (this *DeviceRepo) GetFunction(id string) (result models.Function, err error)

func (*DeviceRepo) GetJson

func (this *DeviceRepo) GetJson(token string, endpoint string, result interface{}) (err error)

func (*DeviceRepo) GetService

func (this *DeviceRepo) GetService(deviceTypeId string, localServiceId string) (result models.Service, err error)

func (*DeviceRepo) GetToken

func (this *DeviceRepo) GetToken() (string, error)

type RepoConfig

type RepoConfig struct {
	DeviceRepositoryUrl string
	CacheDuration       string
	FallbackFile        string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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