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 creates a new *Model with the given options.
No description provided by the author
WithInitialPositions returns an option that configures the positions resource to initialise with the given positions.
WithOpenCloseApiClientFactory instructs the router to create a new client the first time Get is called for that name.
WithOpenCloseInfoClientFactory instructs the router to create a new client the first time Get is called for that name.
WithPositionsOption configures options for the position resource.
WithPreset returns an option that configures the model with the given preset.
WrapApi adapts a traits.OpenCloseApiServer and presents it as a traits.OpenCloseApiClient.
WrapInfo adapts a traits.OpenCloseInfoServer and presents it as a traits.OpenCloseInfoClient.

# Variables

DefaultModelOptions holds the default options for the model.

# Structs

ApiRouter is a traits.OpenCloseApiServer that allows routing named requests to specific traits.OpenCloseApiClient.
No description provided by the author
InfoRouter is a traits.OpenCloseInfoServer that allows routing named requests to specific traits.OpenCloseInfoClient.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author