fa95d733ca
Add short tests and Tidy internal directories * complete the tasks
18 lines
294 B
Go
18 lines
294 B
Go
package queue
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/aws/aws-sdk-go-v2/service/sqs"
|
|
"github.com/aws/aws-sdk-go-v2/service/sqs/types"
|
|
)
|
|
|
|
type Config struct {
|
|
URL string
|
|
Client *sqs.Client
|
|
}
|
|
|
|
type Controller interface {
|
|
Process(ctx context.Context, config *Config, msg *types.Message) error
|
|
}
|