property

package
v0.0.0-...-6312dd6 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Description

type Description struct {
	Id          string `json:"id"`
	Type        string `json:"type"`
	Thing       string `json:"thing"`
	Unit        string `json:"unit,omitempty"`
	Description string `json:"description,omitempty"`
	Href        string `json:"href,omitempty"`
}

type Property

type Property struct {
	*bus.EventBus
	// contains filtered or unexported fields
}

func NewProperty

func NewProperty(description Description, container things.Container) *Property

func (*Property) GetThing

func (p *Property) GetThing() string

func (*Property) GetType

func (p *Property) GetType() string

func (*Property) Set

func (p *Property) Set(value any) (any, error)

func (*Property) Start

func (p *Property) Start()

func (*Property) Stop

func (p *Property) Stop()

func (*Property) ToDescription

func (p *Property) ToDescription() Description

Jump to

Keyboard shortcuts

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