Versions in this module Expand all Collapse all v1 v1.0.0-beta.2 Feb 21, 2023 v0 v0.2024.5 Jun 5, 2024 v0.2024.4 Feb 14, 2024 Changes in this version + type COV struct + Method COVMethod + PollDelay Duration + type COVMethod string + const COVMethodAuto + const COVMethodCov + const COVMethodLocal + const COVMethodNone + const COVMethodPoll + type Comm struct + Destination *Destination + IP *netip.AddrPort + func (c *Comm) ToAddress() (bactypes.Address, error) + type Destination struct + Address DestinationAddress + Network uint16 + type DestinationAddress string + func (d DestinationAddress) Bytes() ([]byte, error) + type Device struct + COV *COV + Comm *Comm + DefaultWritePriority uint + DiscoverObjects *bool + ID bactypes.ObjectInstance + Metadata *traits.Metadata + Name string + Objects []Object + Title string + type DeviceRef struct + func NewDeviceRef(name string) *DeviceRef + func NewDeviceRefID(id bactypes.ObjectInstance) *DeviceRef + func (d *DeviceRef) UnmarshalJSON(bytes []byte) error + func (d DeviceRef) Lookup(ctx known.Context) (bactypes.Device, error) + func (d DeviceRef) MarshalJSON() ([]byte, error) + type Discovery struct + Chunk int + ChunkDelay Duration + Max int + Min int + type Duration struct + func (d *Duration) UnmarshalJSON(b []byte) error + func (d Duration) MarshalJSON() ([]byte, error) + type Object struct + COV *COV + ID ObjectID + Metadata *traits.Metadata + Name string + Priorities []Priority + Properties []Property + Title string + Trait trait.Name + func (o Object) String() string + type ObjectID bactypes.ObjectID + func ObjectIDFromString(str string) (ObjectID, error) + func (o *ObjectID) UnmarshalJSON(bytes []byte) error + func (o ObjectID) MarshalJSON() ([]byte, error) + func (o ObjectID) String() string + type ObjectRef struct + func NewObjectRef(name string) *ObjectRef + func NewObjectRefID(id ObjectID) *ObjectRef + func (o *ObjectRef) UnmarshalJSON(bytes []byte) error + func (o ObjectRef) Lookup(device bactypes.Device, ctx known.Context) (bactypes.Object, error) + func (o ObjectRef) MarshalJSON() ([]byte, error) + type Priority struct + Level uint8 + Name string + type Property struct + ID PropertyID + Name string + type PropertyID property.ID + func (p *PropertyID) UnmarshalJSON(bytes []byte) error + func (p PropertyID) MarshalJSON() ([]byte, error) + func (p PropertyID) String() string + type RawTrait struct + Raw json.RawMessage + func (c *RawTrait) MarshalJSON() ([]byte, error) + func (c *RawTrait) UnmarshalJSON(buf []byte) error + type Root struct + COV *COV + DeviceNamePrefix string + Devices []Device + DiscoverObjects bool + Discovery *Discovery + ForceDiscovery bool + IncludeDiscoveredDevices bool + LocalInterface string + LocalPort uint16 + MaxConcurrentTransactions uint8 + Metadata *traits.Metadata + ObjectNamePrefix string + Traits []RawTrait + func Defaults() Root + func Read(r io.Reader) (Root, error) + func ReadBytes(data []byte) (root Root, err error) + func ReadFile(name string) (Root, error) + type Trait struct + ChunkSize int + Kind trait.Name + Metadata *traits.Metadata + Name string + PollPeriod *Duration + PollTimeout *Duration + func (t *Trait) PollPeriodDuration() time.Duration + func (t *Trait) PollTimeoutDuration() time.Duration + type ValueSource struct + Device *DeviceRef + Object *ObjectRef + Property *PropertyID + Scale float64 + func (vs ValueSource) Lookup(ctx known.Context) (bactypes.Device, bactypes.Object, property.ID, error) + func (vs ValueSource) Scaled(v any) any v0.2024.3 Feb 8, 2024 v0.2024.2 Feb 8, 2024 v0.2024.1 Feb 8, 2024 v0.0.0-test-multiarch Jun 7, 2024