Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bundle ¶
type Bundle interface {
Configure(bundleOpts *BundleOpts)
MountEndpoints(archetype *baseservice.Archetype, logger *slog.Logger, mux *http.ServeMux, mountOpts *apiendpoint.MountOpts) []apiendpoint.EndpointInterface
Validate() error
}
Bundle is a collection of API endpoints and features for a riverui.Handler. A Bundle must be provided to the Handler via the `Endpoints` option of `HandlerOpts`.
Two constructors are provided:
- `riverui.NewEndpoints` returns the open source riverui bundle
- `riverproui.NewEndpoints` returns the Pro-specific bundle with Pro APIs and features enabled. The `riverproui` package is a separate module that requires the `riverpro` module to be installed.
Source Files
¶
- bundle.go
Click to show internal directories.
Click to hide internal directories.