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 without any bookings.
No description provided by the author
WithBookingApiClientFactory instructs the router to create a new client the first time Get is called for that name.
WithBookingInfoClientFactory instructs the router to create a new client the first time Get is called for that name.
WithBookingOption configures the booking resource of the model.
WithInitialBooking returns an option that configures the model to initialise with the given bookings.
WrapApi adapts a traits.BookingApiServer and presents it as a traits.BookingApiClient.
WrapInfo adapts a traits.BookingInfoServer and presents it as a traits.BookingInfoClient.

# Variables

DefaultModelOptions holds the default options for the model.

# Structs

ApiRouter is a traits.BookingApiServer that allows routing named requests to specific traits.BookingApiClient.
No description provided by the author
goland:noinspection GoNameStartsWithPackageName.
InfoRouter is a traits.BookingInfoServer that allows routing named requests to specific traits.BookingInfoClient.
No description provided by the author
Model models the Booking trait.
No description provided by the author

# Interfaces

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