Documentation
¶
Index ¶
- Constants
- Variables
- func From(app *runtime.App) *corequeue.RuntimeInstance
- func FromServiceContext(ctx ServiceContext) (*corequeue.RuntimeInstance, bool)
- func OperationsFromServiceContext(ctx ServiceContext) (*corequeue.OperationsRuntime, bool)
- func RuntimeFrom(app *runtime.App) *corequeue.RuntimeInstance
- func RuntimeFromServiceContext(ctx ServiceContext) *corequeue.RuntimeInstance
- func Use(opts ...UseOption) runtime.Capability
- type Config
- type ConfigLoader
- type ServiceContext
- type UseOption
Constants ¶
View Source
const ( KeyQueue runtime.Key = "queue.operations" Name = string(KeyQueue) )
Variables ¶
View Source
var ErrOperationsConfigRequired = errors.New("queue operations facade: config required")
Functions ¶
func FromServiceContext ¶
func FromServiceContext(ctx ServiceContext) (*corequeue.RuntimeInstance, bool)
func OperationsFromServiceContext ¶
func OperationsFromServiceContext(ctx ServiceContext) (*corequeue.OperationsRuntime, bool)
func RuntimeFrom ¶
func RuntimeFrom(app *runtime.App) *corequeue.RuntimeInstance
func RuntimeFromServiceContext ¶
func RuntimeFromServiceContext(ctx ServiceContext) *corequeue.RuntimeInstance
func Use ¶
func Use(opts ...UseOption) runtime.Capability
Types ¶
type ServiceContext ¶
type UseOption ¶
type UseOption func(*useOptions)
func WithConfig ¶
func WithConfigLoader ¶
func WithConfigLoader(loader ConfigLoader) UseOption
func WithDependencies ¶
func WithDependencies(deps ...runtime.Dependency) UseOption
func WithInternal ¶
func WithInternal() UseOption
func WithRuntimeOptions ¶
func WithRuntimeOptions(opts ...corequeue.RuntimeInstanceOption) UseOption
Click to show internal directories.
Click to hide internal directories.