sqs

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSQSConsumer

func NewSQSConsumer(ctx context.Context, conf *SQSConfig, l logging.Logger) (*worker.Worker, error)

Types

type SQSConfig

type SQSConfig struct {
	Debug              string `default:"false"`
	AWSRegion          string `envconfig:"aws_region"    default:"ap-northeast-1"`
	SQSEndpoint        string `envconfig:"sqs_endpoint"  default:"http://queue.middleware.svc.cluster.local:9324"`
	QueueName          string `split_words:"true" default:"code-gitleaks"`
	QueueURL           string `split_words:"true" default:"http://queue.middleware.svc.cluster.local:9324/queue/code-gitleaks"`
	MaxNumberOfMessage int32  `split_words:"true" default:"10"`
	WaitTimeSecond     int32  `split_words:"true" default:"20"`
}

Jump to

Keyboard shortcuts

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