operations

package
v0.1.28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "queue.operations"
)

Variables

View Source
var ErrOperationsConfigRequired = errors.New("queue operations facade: config required")

Functions

func From

func From(app *runtime.App) *queue.RuntimeInstance

func FromServiceContext

func FromServiceContext(ctx ServiceContext) (*queue.RuntimeInstance, bool)

func OperationsFromServiceContext

func OperationsFromServiceContext(ctx ServiceContext) (*queue.OperationsRuntime, bool)

func RuntimeFrom

func RuntimeFrom(app *runtime.App) *queue.RuntimeInstance

func RuntimeFromServiceContext

func RuntimeFromServiceContext(ctx ServiceContext) *queue.RuntimeInstance

func Use

func Use(opts ...UseOption) runtime.Capability

Types

type Config

type Config struct {
	Queue    queue.Config
	Metadata queue.RuntimeMetadata
}

func NewConfig

func NewConfig(name string, service string, cfg queue.Config) Config

type ConfigLoader

type ConfigLoader func(app *runtime.App) (Config, error)

type ServiceContext

type ServiceContext interface {
	CapabilityLocalFirst(name string) (any, bool)
}

type UseOption

type UseOption func(*useOptions)

func WithConfig

func WithConfig(cfg Config) UseOption

func WithConfigLoader

func WithConfigLoader(loader ConfigLoader) UseOption

func WithDependencies

func WithDependencies(deps ...runtime.Dependency) UseOption

func WithInternal

func WithInternal() UseOption

func WithName

func WithName(name string) UseOption

func WithRuntimeOptions

func WithRuntimeOptions(opts ...queue.RuntimeInstanceOption) UseOption

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL