-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from dc0d/wip/after-batch
add after batch func
- Loading branch information
Showing
4 changed files
with
117 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,19 @@ | ||
[![PkgGoDev](https://pkg.go.dev/badge/dc0d/sqstransport)](https://pkg.go.dev/github.com/dc0d/sqstransport) | ||
|
||
# sqstransport | ||
go-kit transport for sqs | ||
|
||
This package contains a go-kit transport implementation for AWS SQS. | ||
|
||
```go | ||
sub := &Subscriber{ | ||
InputFactory: ..., // create a *sqs.ReceiveMessageInput instance, | ||
DecodeRequest: ..., // decode the incoming message into an endpoint request object, | ||
Handler: func(ctx context.Context, request interface{}) (response interface{}, err error) { | ||
// handle the request, | ||
}, | ||
ResponseHandler: ..., // handle the response, | ||
} | ||
|
||
go func() { _ = sub.Serve(client) }() | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
|
||
while true | ||
do | ||
watchman-wait -p "**/*.go" -- . | ||
clear | ||
make | ||
done |