2024-12-18 18:54:48 +00:00
|
|
|
package queue
|
|
|
|
|
|
|
|
|
|
import (
|
2025-01-10 11:12:03 +00:00
|
|
|
"context"
|
|
|
|
|
|
2024-12-18 18:54:48 +00:00
|
|
|
"github.com/aws/aws-sdk-go-v2/service/sqs"
|
2025-01-10 11:12:03 +00:00
|
|
|
"github.com/aws/aws-sdk-go-v2/service/sqs/types"
|
2024-12-18 18:54:48 +00:00
|
|
|
)
|
|
|
|
|
|
2025-01-10 11:12:03 +00:00
|
|
|
type Config struct {
|
2024-12-18 18:54:48 +00:00
|
|
|
URL string
|
|
|
|
|
Client *sqs.Client
|
|
|
|
|
}
|
2025-01-10 11:12:03 +00:00
|
|
|
|
|
|
|
|
type Controller interface {
|
2025-01-20 13:51:22 +00:00
|
|
|
Process(ctx context.Context, message *types.Message) error
|
2025-01-10 11:12:03 +00:00
|
|
|
}
|