generated from bep/golibtemplate
-
-
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.
Message streaming, ETag support etc.
The old request/response setup worked great, but had its limitations. The new model types are request, message (zero or more) and a receipt. The receipt can immplement some optional interfaces that gets/sets * ETag * ELastModified * ESize These may autimatically be set by the library if not provided by user (the `Etag` bassed on all message bodies if there's a hash function configured). The primary use case for the above would be client side caching. This also removes the slow Gob codec.
- Loading branch information
Showing
16 changed files
with
963 additions
and
455 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,40 +1,35 @@ | ||
on: | ||
push: | ||
branches: [ main ] | ||
branches: [main] | ||
pull_request: | ||
name: Test | ||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
go-version: [1.18.x] | ||
go-version: [1.21.x, 1.22.x] | ||
platform: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- name: Install staticcheck | ||
run: go install honnef.co/go/tools/cmd/staticcheck@latest | ||
shell: bash | ||
- name: Install golint | ||
run: go install golang.org/x/lint/golint@latest | ||
shell: bash | ||
- name: Update PATH | ||
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | ||
shell: bash | ||
- name: Checkout code | ||
uses: actions/checkout@v1 | ||
- name: Fmt | ||
if: matrix.platform != 'windows-latest' # :( | ||
run: "diff <(gofmt -d .) <(printf '')" | ||
shell: bash | ||
- name: Vet | ||
run: go vet ./... | ||
- name: Staticcheck | ||
run: staticcheck ./... | ||
- name: Lint | ||
run: golint ./... | ||
- name: Test | ||
run: go test -race ./... | ||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- name: Install staticcheck | ||
run: go install honnef.co/go/tools/cmd/staticcheck@latest | ||
shell: bash | ||
- name: Update PATH | ||
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | ||
shell: bash | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Fmt | ||
if: matrix.platform != 'windows-latest' # :( | ||
run: "diff <(gofmt -d .) <(printf '')" | ||
shell: bash | ||
- name: Vet | ||
run: go vet ./... | ||
- name: Staticcheck | ||
run: staticcheck ./... | ||
- name: Test | ||
run: go test -race ./... |
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
Oops, something went wrong.