runner

package
v0.0.0-...-b350035 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DispatchStrategy

type DispatchStrategy int
const (
	SemPool DispatchStrategy = iota + 1
	WorkerPool
)

type Runner

type Runner interface {
	Run(context.Context)
	Stop(context.Context)
}

func NewSqsRunner

func NewSqsRunner(
	handler types.HandleMessage[awstypes.Message],
	batchSize int,
	batchInterval time.Duration,
	client service.Sqs,
	queueUrl string,
	concurrency int,
	visibilityTimeout int,
	maxMessages int,
	queueAttributeNames []string,
	maxIdleTime int,
	dispatchStrategy DispatchStrategy,
) Runner

type SqsRunner

type SqsRunner struct {
	// contains filtered or unexported fields
}

func (*SqsRunner) Run

func (r *SqsRunner) Run(ctx context.Context)

func (*SqsRunner) Stop

func (w *SqsRunner) Stop(ctx context.Context)

Jump to

Keyboard shortcuts

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