package
0.0.0-20241219150934-9249a2757f07
Repository: https://github.com/smart-core-os/sc-golang.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
NewGroup creates a new Group instance with ExecutionStrategyAll for both reads and writes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WithBrightnessOption configures the brightness resource of the model.
WithInitialBrightness returns an option that configures the model to initialise with the given brightness.
WithLightApiClientFactory instructs the router to create a new client the first time Get is called for that name.
WithLightInfoClientFactory instructs the router to create a new client the first time Get is called for that name.
WithPreset instructs the model to set the light to the given level when preset p is selected.
WrapApi adapts a traits.LightApiServer and presents it as a traits.LightApiClient.
WrapInfo adapts a traits.LightInfoServer and presents it as a traits.LightInfoClient.

# Variables

DefaultModelOptions holds the default options for the model.

# Structs

ApiRouter is a traits.LightApiServer that allows routing named requests to specific traits.LightApiClient.
No description provided by the author
Group combines multiple named devices into a single named device.
InfoRouter is a traits.LightInfoServer that allows routing named requests to specific traits.LightInfoClient.
No description provided by the author
MemoryDevice implements the LightApiServer interface for a single device by storing state in memory.
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

ModelOption defined the base type for all options that apply to this traits model.