Documentation
¶
Overview ¶
Package sqs provides a RoadRunner jobs driver for AWS SQS queues.
The plugin registers itself under the "sqs" name and implements the Endure service container lifecycle (Init, Collects). It reads connection credentials and queue settings from the application configuration and produces jobs.Driver instances via DriverFromConfig and DriverFromPipeline.
OpenTelemetry tracing is supported: when a TracerProvider is collected through dependency injection, every driver created by the plugin propagates trace context across SQS messages.
Index ¶
- type Configurer
- type Logger
- type Plugin
- func (p *Plugin) Collects() []*dep.In
- func (p *Plugin) DriverFromConfig(ctx context.Context, configKey string, pq jobs.Queue, pipeline jobs.Pipeline) (jobs.Driver, error)
- func (p *Plugin) DriverFromPipeline(ctx context.Context, pipe jobs.Pipeline, pq jobs.Queue) (jobs.Driver, error)
- func (p *Plugin) Init(log Logger, cfg Configurer) error
- func (p *Plugin) Name() string
- type Tracer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configurer ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) DriverFromConfig ¶
func (*Plugin) DriverFromPipeline ¶
type Tracer ¶
type Tracer interface {
Tracer() *sdktrace.TracerProvider
}
Click to show internal directories.
Click to hide internal directories.