Files
query-orchestration/internal/server/queue/config.go
T

18 lines
282 B
Go
Raw Normal View History

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 {
Process(ctx context.Context, message *types.Message) error
2025-01-10 11:12:03 +00:00
}