testutils

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AspectCommand

type AspectCommand struct {
	Command string        `json:"command"`
	Id      string        `json:"id"`
	Owner   string        `json:"owner"`
	Aspect  models.Aspect `json:"aspect"`
}

type CharacteristicCommand

type CharacteristicCommand struct {
	Command        string                `json:"command"`
	Id             string                `json:"id"`
	Owner          string                `json:"owner"`
	Characteristic models.Characteristic `json:"characteristic"`
}

type ConceptCommand

type ConceptCommand struct {
	Command string         `json:"command"`
	Id      string         `json:"id"`
	Owner   string         `json:"owner"`
	Concept models.Concept `json:"concept"`
}

type DeviceClassCommand

type DeviceClassCommand struct {
	Command     string             `json:"command"`
	Id          string             `json:"id"`
	Owner       string             `json:"owner"`
	DeviceClass models.DeviceClass `json:"device_class"`
}

type DeviceCommand

type DeviceCommand struct {
	Command string        `json:"command"`
	Id      string        `json:"id"`
	Owner   string        `json:"owner"`
	Device  models.Device `json:"device"`
}

type DeviceGroupCommand

type DeviceGroupCommand struct {
	Command     string             `json:"command"`
	Id          string             `json:"id"`
	Owner       string             `json:"owner"`
	DeviceGroup models.DeviceGroup `json:"device_group"`
}

type DeviceTypeCommand

type DeviceTypeCommand struct {
	Command    string            `json:"command"`
	Id         string            `json:"id"`
	Owner      string            `json:"owner"`
	DeviceType models.DeviceType `json:"device_type"`
}

type FunctionCommand

type FunctionCommand struct {
	Command  string          `json:"command"`
	Id       string          `json:"id"`
	Owner    string          `json:"owner"`
	Function models.Function `json:"function"`
}

type HubCommand

type HubCommand struct {
	Command string     `json:"command"`
	Id      string     `json:"id"`
	Owner   string     `json:"owner"`
	Hub     models.Hub `json:"hub"`
}

type ProtocolCommand

type ProtocolCommand struct {
	Command  string          `json:"command"`
	Id       string          `json:"id"`
	Owner    string          `json:"owner"`
	Protocol models.Protocol `json:"protocol"`
}

type Publisher

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

func NewPublisher

func NewPublisher(conf config.Config) (*Publisher, error)

func (*Publisher) PublishAspect

func (this *Publisher) PublishAspect(aspect models.Aspect, userid string) error

func (*Publisher) PublishAspectCommand

func (this *Publisher) PublishAspectCommand(cmd AspectCommand) error

func (*Publisher) PublishCharacteristic

func (this *Publisher) PublishCharacteristic(characteristic models.Characteristic, userid string) error

func (*Publisher) PublishCharacteristicCommand

func (this *Publisher) PublishCharacteristicCommand(cmd CharacteristicCommand) error

func (*Publisher) PublishConcept

func (this *Publisher) PublishConcept(concept models.Concept, userid string) error

func (*Publisher) PublishConceptCommand

func (this *Publisher) PublishConceptCommand(cmd ConceptCommand) error

func (*Publisher) PublishDevice

func (this *Publisher) PublishDevice(device models.Device, userId string) (err error)

func (*Publisher) PublishDeviceClass

func (this *Publisher) PublishDeviceClass(deviceClass models.DeviceClass, userid string) error

func (*Publisher) PublishDeviceClassCommand

func (this *Publisher) PublishDeviceClassCommand(cmd DeviceClassCommand) error

func (*Publisher) PublishDeviceCommand

func (this *Publisher) PublishDeviceCommand(cmd DeviceCommand) error

func (*Publisher) PublishDeviceGroup

func (this *Publisher) PublishDeviceGroup(dg models.DeviceGroup, userId string) (err error)

func (*Publisher) PublishDeviceGroupCommand

func (this *Publisher) PublishDeviceGroupCommand(cmd DeviceGroupCommand) error

func (*Publisher) PublishDeviceType

func (this *Publisher) PublishDeviceType(device models.DeviceType, userId string) (err error)

func (*Publisher) PublishDeviceTypeCommand

func (this *Publisher) PublishDeviceTypeCommand(cmd DeviceTypeCommand) error

func (*Publisher) PublishDeviceTypeDelete

func (this *Publisher) PublishDeviceTypeDelete(id string, userId string) error

func (*Publisher) PublishFunction

func (this *Publisher) PublishFunction(function models.Function, userid string) error

func (*Publisher) PublishFunctionCommand

func (this *Publisher) PublishFunctionCommand(cmd FunctionCommand) error

func (*Publisher) PublishHub

func (this *Publisher) PublishHub(hub models.Hub, userId string) (err error)

func (*Publisher) PublishHubCommand

func (this *Publisher) PublishHubCommand(cmd HubCommand) error

func (*Publisher) PublishHubDelete

func (this *Publisher) PublishHubDelete(id string, userId string) error

func (*Publisher) PublishProtocol

func (this *Publisher) PublishProtocol(device models.Protocol, userId string) (err error)

func (*Publisher) PublishProtocolCommand

func (this *Publisher) PublishProtocolCommand(cmd ProtocolCommand) error

func (*Publisher) PublishProtocolDelete

func (this *Publisher) PublishProtocolDelete(id string, userId string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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