trait

package
v0.0.0-...-084e4ab Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 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 (
	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"
	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"
	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"
	Publication      Name = "smartcore.traits.Publication"
	Ptz              Name = "smartcore.traits.Ptz"
	Speaker          Name = "smartcore.traits.Speaker"
	Vending          Name = "smartcore.traits.Vending"
)

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