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
NewModel constructs a Model with default values using the first of DefaultPresets.
No description provided by the author
WithFanSpeedApiClientFactory instructs the router to create a new client the first time Get is called for that name.
WithFanSpeedInfoClientFactory instructs the router to create a new client the first time Get is called for that name.
WithFanSpeedOption configures the fanSpeed resource of the model.
WithInitialFanSpeed returns an option that configures the model to initialise with the given fan speed.
WithPresets returns an option that configures the model to use the given presets.
WrapApi adapts a traits.FanSpeedApiServer and presents it as a traits.FanSpeedApiClient.
WrapInfo adapts a traits.FanSpeedInfoServer and presents it as a traits.FanSpeedInfoClient.
# Variables
DefaultModelOptions holds the default options for the model.
No description provided by the author
# Structs
ApiRouter is a traits.FanSpeedApiServer that allows routing named requests to specific traits.FanSpeedApiClient.
No description provided by the author
goland:noinspection GoNameStartsWithPackageName.
InfoRouter is a traits.FanSpeedInfoServer that allows routing named requests to specific traits.FanSpeedInfoClient.
No description provided by the author
Model provides a data structure for supporting the Fan Speed trait.
ModelServer adapts a Model as a traits.FanSpeedApiServer.
No description provided by the author
# Interfaces
ModelOption defined the base type for all options that apply to this traits model.