Documentation ¶
Index ¶
- Constants
- func TypeOf(iface interface{}) string
- func ValueOf(iface interface{}) interface{}
- type AttrPermission
- type Base
- func (b *Base) GetAid() uint64
- func (b *Base) GetIid() uint64
- func (b *Base) GetPermission() uint
- func (b *Base) Notify(val interface{}) error
- func (b *Base) Set(val interface{}) error
- func (b *Base) SetAid(aid uint64)
- func (b *Base) SetIid(iid uint64)
- func (b *Base) SetNotifyFunc(fn NotifyFunc)
- func (b *Base) SetPermission(permission uint)
- func (b *Base) SetUpdateFunc(fn UpdateFunc)
- type Bool
- type BoolType
- type Enum
- type EnumType
- type Float
- type FloatType
- type HomekitCharacteristic
- type Identity
- type Int
- type IntType
- type Manufacturer
- type Model
- type Name
- type Notifier
- type NotifyFunc
- type Power
- type Setter
- type String
- type StringType
- type UpdateFunc
- type Version
Constants ¶
View Source
const ( AttrPermissionALLControl = iota // 0:可控制可读(例如灯光控制属性) AttrPermissionOnlyRead // 1:不可控制但是可读(例如:传感器状态属性) AttrPermissionNone // 2:不可控制不可读(其他属性) )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AttrPermission ¶ added in v1.9.1
AttrPermission 属性状态接口
type Base ¶
type Base struct { Permission uint // 属性状态: 0可控制可读(灯光控制属性),1不可控制但是可读(传感器状态),2不可控制不可读(其他属性) // contains filtered or unexported fields }
func (*Base) GetPermission ¶ added in v1.9.1
func (*Base) SetPermission ¶ added in v1.9.1
type HomekitCharacteristic ¶ added in v1.9.1
type HomekitCharacteristic interface { SetAid(aid uint64) GetAid() uint64 SetIid(iid uint64) GetIid() uint64 }
HomekitCharacteristic homekit的特征属性
type Manufacturer ¶
type Manufacturer struct {
String
}
func NewManufacturer ¶
func NewManufacturer() *Manufacturer
type Notifier ¶
type Notifier interface { Notify(val interface{}) error SetNotifyFunc(NotifyFunc) }
type NotifyFunc ¶
type NotifyFunc func(val interface{}) error
type String ¶
type String struct { Base // contains filtered or unexported fields }
func StringWithValidValues ¶
type StringType ¶
type UpdateFunc ¶
type UpdateFunc func(val interface{}) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.