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

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
NewModel creates a new Model with the given options.
No description provided by the author
WithConsumablesOption configures the consumables resource of the model.
WithInitialConsumable configures the model to initialise with the given consumable.
WithInitialStock configures the model to initialise with the given stock.
WithInventoryOption configures the inventory resource of the model.
WithVendingApiClientFactory instructs the router to create a new client the first time Get is called for that name.
WithVendingInfoClientFactory instructs the router to create a new client the first time Get is called for that name.
WrapApi adapts a traits.VendingApiServer and presents it as a traits.VendingApiClient.
WrapInfo adapts a traits.VendingInfoServer and presents it as a traits.VendingInfoClient.

# Variables

DefaultModelOptions holds the default options for the model.

# Structs

ApiRouter is a traits.VendingApiServer that allows routing named requests to specific traits.VendingApiClient.
No description provided by the author
No description provided by the author
No description provided by the author
InfoRouter is a traits.VendingInfoServer that allows routing named requests to specific traits.VendingInfoClient.
No description provided by the author
No description provided by the author
Model describes the data structure needed to implement the Vending trait.
ModelServer adapts a Model to implement traits.VendingApiServer.
No description provided by the author

# Interfaces

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