https://github.com/dc0d/sqstransport
go-kit transport for sqs
https://github.com/dc0d/sqstransport
go-kit go-kit-transport gokit golang sqs
Last synced: about 2 months ago
JSON representation
go-kit transport for sqs
- Host: GitHub
- URL: https://github.com/dc0d/sqstransport
- Owner: dc0d
- License: mit
- Created: 2021-08-19T19:00:03.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-13T00:38:56.000Z (almost 4 years ago)
- Last Synced: 2025-01-20T14:57:25.261Z (9 months ago)
- Topics: go-kit, go-kit-transport, gokit, golang, sqs
- Language: Go
- Homepage:
- Size: 71.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
[](https://pkg.go.dev/github.com/dc0d/sqstransport)
# sqstransport
This package contains a go-kit transport implementation for AWS SQS.
```go
sub := New(
WithBefore(...),
WithBefore(...),
UseHandler(...), // handle the request,
UseDecodeRequest(...), // decode the incoming message into an endpoint request object,
UseResponseHandler(...),
UseResponseHandler(...),
UseInputFactory(...), // create a *sqs.ReceiveMessageInput instance,
WithBaseContext(...), // used for processing each new message
WithErrorHandler(...),
)go func() { _ = sub.Serve(client) }()
```