Documentation ¶
Index ¶
- Constants
- Variables
- type Group
- func (g *Group) DescribeModes(_ context.Context, _ *traits.DescribeModesRequest) (*traits.ModesSupport, error)
- func (g *Group) GetModeValues(ctx context.Context, request *traits.GetModeValuesRequest) (*traits.ModeValues, error)
- func (g *Group) PullModeValues(request *traits.PullModeValuesRequest, ...) error
- func (g *Group) UpdateModeValues(ctx context.Context, request *traits.UpdateModeValuesRequest) (*traits.ModeValues, error)
Constants ¶
View Source
const MixedValue = "<< mixed >>"
MixedValue is used as ModeValues.Value when underlying devices disagree on the actual value for a mode.
Variables ¶
View Source
var Feature = zone.FactoryFunc(func(services zone.Services) service.Lifecycle { services.Logger = services.Logger.Named("mode") f := &feature{ announce: services.Node, devices: services.Devices, clients: services.Node, logger: services.Logger, } f.Service = service.New(service.MonoApply(f.applyConfig), service.WithParser(config.ReadConfigBytes)) return f })
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct { traits.UnimplementedModeApiServer traits.UnimplementedModeInfoServer // contains filtered or unexported fields }
func (*Group) DescribeModes ¶
func (g *Group) DescribeModes(_ context.Context, _ *traits.DescribeModesRequest) (*traits.ModesSupport, error)
func (*Group) GetModeValues ¶
func (g *Group) GetModeValues(ctx context.Context, request *traits.GetModeValuesRequest) (*traits.ModeValues, error)
func (*Group) PullModeValues ¶
func (g *Group) PullModeValues(request *traits.PullModeValuesRequest, server traits.ModeApi_PullModeValuesServer) error
func (*Group) UpdateModeValues ¶
func (g *Group) UpdateModeValues(ctx context.Context, request *traits.UpdateModeValuesRequest) (*traits.ModeValues, error)
Click to show internal directories.
Click to hide internal directories.