-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jetstreamext: Add direct get batch functions
Signed-off-by: Piotr Piotrowski <[email protected]>
- Loading branch information
Showing
12 changed files
with
1,085 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: jetstreamext | ||
on: | ||
push: | ||
paths: | ||
- 'jetstreamext/**' | ||
|
||
pull_request: | ||
paths: | ||
- 'jetstreamext/**' | ||
|
||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 'stable' | ||
|
||
- name: Install deps | ||
working-directory: jetstreamext | ||
shell: bash --noprofile --norc -x -eo pipefail {0} | ||
run: | | ||
go get -t ./... | ||
go install honnef.co/go/tools/cmd/staticcheck@latest | ||
go install github.com/client9/misspell/cmd/misspell@latest | ||
- name: Run linters | ||
working-directory: jetstreamext | ||
shell: bash --noprofile --norc -x -eo pipefail {0} | ||
run: | | ||
$(exit $(go fmt ./... | wc -l)) | ||
go vet ./... | ||
go vet ./test/... | ||
staticcheck ./... | ||
staticcheck ./test/... | ||
find . -type f -name "*.go" | xargs misspell -error -locale US | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 'stable' | ||
|
||
- name: Run tests | ||
working-directory: jetstreamext | ||
shell: bash --noprofile --norc -x -eo pipefail {0} | ||
run: | | ||
go test -v -count=1 ./... | ||
go test -v -count=1 ./test/... |
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,25 @@ | ||
# Core NATS Extensions | ||
|
||
[License-Url]: https://www.apache.org/licenses/LICENSE-2.0 | ||
[License-Image]: https://img.shields.io/badge/License-Apache2-blue.svg | ||
[ReportCard-Url]: https://goreportcard.com/report/github.com/synadia-io/orbit.go/jetstreamext | ||
[ReportCard-Image]: https://goreportcard.com/badge/github.com/synadia-io/orbit.go/jetstreamext | ||
[Build-Status-Url]: https://github.com/synadia-io/orbit.go/actions/workflows/jetstreamext.yaml | ||
[Build-Status-Image]: https://github.com/synadia-io/orbit.go/actions/workflows/jetstreamext.yaml/badge.svg?branch=main | ||
[GoDoc-Url]: https://pkg.go.dev/github.com/synadia-io/orbit.go/jetstreamext | ||
[GoDoc-Image]: https://pkg.go.dev/badge/github.com/synadia-io/orbit.go/jetstreamext.svg | ||
|
||
[![License][License-Image]][License-Url] | ||
[![Go Reference][GoDoc-Image]][GoDoc-Url] | ||
[![Build Status][Build-Status-Image]][Build-Status-Url] | ||
[![Go Report Card][ReportCard-Image]][ReportCard-Url] | ||
|
||
JetStream Extensions is a set of utilities providing additional features to `jetstream` pacakge in nats.go client. | ||
|
||
## Installation | ||
|
||
```bash | ||
go get github.com/synadia-io/orbit.go/jetstreamext | ||
``` | ||
|
||
## TODO: add readme |
Oops, something went wrong.