trait

package
v0.0.0-...-085f91d Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: MIT Imports: 1 Imported by: 56

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Name

type Name string
const (
	Access           Name = "smartcore.traits.Access"
	AirQualitySensor Name = "smartcore.traits.AirQualitySensor"
	AirTemperature   Name = "smartcore.traits.AirTemperature"
	Booking          Name = "smartcore.traits.Booking"
	BrightnessSensor Name = "smartcore.traits.BrightnessSensor"
	Channel          Name = "smartcore.traits.Channel"
	Color            Name = "smartcore.traits.Color"
	Count            Name = "smartcore.traits.Count"
	Electric         Name = "smartcore.traits.Electric"
	Emergency        Name = "smartcore.traits.Emergency"
	EnergyStorage    Name = "smartcore.traits.EnergyStorage"
	EnterLeaveSensor Name = "smartcore.traits.EnterLeaveSensor"
	ExtendRetract    Name = "smartcore.traits.ExtendRetract"
	FanSpeed         Name = "smartcore.traits.FanSpeed"
	Hail             Name = "smartcore.traits.Hail"
	InputSelect      Name = "smartcore.traits.InputSelect"
	Light            Name = "smartcore.traits.Light"
	LockUnlock       Name = "smartcore.traits.LockUnlock"
	Metadata         Name = "smartcore.traits.Metadata"
	Meter            Name = "smartcore.traits.Meter"
	Microphone       Name = "smartcore.traits.Microphone"
	Mode             Name = "smartcore.traits.Mode"
	MotionSensor     Name = "smartcore.traits.MotionSensor"
	OccupancySensor  Name = "smartcore.traits.OccupancySensor"
	OnOff            Name = "smartcore.traits.OnOff"
	OpenClose        Name = "smartcore.traits.OpenClose"
	Parent           Name = "smartcore.traits.Parent"
	Press            Name = "smartcore.traits.Press"
	Publication      Name = "smartcore.traits.Publication"
	Ptz              Name = "smartcore.traits.Ptz"
	Speaker          Name = "smartcore.traits.Speaker"
	Temperature      Name = "smartcore.traits.Temperature"
	Vending          Name = "smartcore.traits.Vending"
	Waste            Name = "smartcore.traits.Waste"
)

func (Name) Local

func (n Name) Local() string

Local returns the last part of a fully qualified trait name.

Example
fmt.Println(Booking.Local())
fmt.Println(OnOff.Local())
Output:

Booking
OnOff

func (Name) String

func (n Name) String() string

Directories

Path Synopsis
modepb
Package modepb contains utilities for working with traits.ElectricMode values.
Package modepb contains utilities for working with traits.ElectricMode values.
segmentpb
Package segmentpb contains utilities for working with traits.ElectricMode_Segment values.
Package segmentpb contains utilities for working with traits.ElectricMode_Segment values.

Jump to

Keyboard shortcuts

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