Skip to content
Merged
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
a58f4d8
Add generic middleware implementation
tjholm Sep 18, 2024
1cfc16d
cleanup
tjholm Sep 18, 2024
f582311
large refactor
tjholm Sep 18, 2024
6f8e0e7
fmt
tjholm Sep 18, 2024
1839ebe
accept interface.
tjholm Sep 18, 2024
5d7753d
handle interface conversion.
tjholm Sep 18, 2024
fd2cd57
fix logic error.
tjholm Sep 18, 2024
7cb1771
broaden what middleware can be.
tjholm Sep 18, 2024
70f9f5c
broaden the api interface.
tjholm Sep 18, 2024
8504b2a
flexible middleware
tjholm Sep 18, 2024
61f9ebf
update tests.
tjholm Sep 18, 2024
8f164c2
remove debug messages.
tjholm Sep 18, 2024
3c5a484
wip
jyecusch Sep 19, 2024
9ea82be
allow websockets.On to accept interface
tjholm Sep 19, 2024
9caa7aa
fmt
tjholm Sep 19, 2024
66861a4
add sql databases
tjholm Sep 19, 2024
356bfaf
Add generic middleware composition function
tjholm Sep 23, 2024
50aa2cf
maintain proper middleware order
tjholm Sep 23, 2024
8443ccb
exclude empty functions
tjholm Sep 23, 2024
8f9227e
always return original ctx in wrappers
tjholm Sep 23, 2024
2a1db81
return nil middleware if functions are empty
tjholm Sep 23, 2024
25e40b5
fix typos
jyecusch Sep 24, 2024
f6e9756
fix typos and clean up old code
jyecusch Sep 24, 2024
661ac55
don't return nil ctx
jyecusch Sep 25, 2024
a54abd9
remove middleware from SDK
jyecusch Oct 1, 2024
eb2d175
remove unreferenced handler variables
jyecusch Oct 1, 2024
39216fd
move resources to their own packages
jyecusch Oct 1, 2024
093b3b4
use single grpc connection to nitric server
jyecusch Oct 1, 2024
29da8e7
fix tests
jyecusch Oct 1, 2024
5a0e786
Merge branch 'namespaced-options' into generic-middleware
jyecusch Oct 1, 2024
fb9ea15
readd missing run func
jyecusch Oct 1, 2024
26f6054
add missing license headers
HomelessDinosaur Oct 1, 2024
b6901a0
Add missing conversion case.
tjholm Oct 2, 2024
9439b7f
fix typo and cleanup comments.
tjholm Oct 2, 2024
332ca96
update options to types over aliases
tjholm Oct 2, 2024
83c2c9e
remove out of date comments.
tjholm Oct 2, 2024
9e0c593
make the handlers package internal
jyecusch Oct 2, 2024
655475b
use MIMEHeader for http request headers
jyecusch Oct 2, 2024
c10b43f
panic on resource creation failure
jyecusch Oct 2, 2024
093f19f
panic on permission request failures
jyecusch Oct 2, 2024
7b24874
panic if run fails
jyecusch Oct 2, 2024
7b4d262
document api options
jyecusch Oct 2, 2024
afe48a0
add missing iface method param names
jyecusch Oct 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
run:
timeout: "5m"
skip-files:
- tools/tools.go
- doc.go

linters:
disable-all: true
Expand All @@ -23,6 +20,9 @@ linters:
issues:
max-issues-per-linter: 0
max-same-issues: 0
exclude-files:
- tools/tools.go
- doc.go
exclude-rules:
- path: _test\.go
linters:
Expand Down
9 changes: 2 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,13 @@ generate:
go run github.com/golang/mock/mockgen github.com/nitrictech/nitric/core/pkg/proto/secrets/v1 SecretManagerClient > mocks/secrets.go
go run github.com/golang/mock/mockgen github.com/nitrictech/nitric/core/pkg/proto/topics/v1 TopicsClient > mocks/topics.go
go run github.com/golang/mock/mockgen -package mock_v1 google.golang.org/grpc ClientConnInterface > mocks/grpc_clientconn.go
go run github.com/golang/mock/mockgen -package mockapi github.com/nitrictech/go-sdk/api/keyvalue KeyValue,Store > mocks/mockapi/keyvalue.go
go run github.com/golang/mock/mockgen -package mockapi github.com/nitrictech/go-sdk/api/queues Queues,Queue > mocks/mockapi/queues.go
go run github.com/golang/mock/mockgen -package mockapi github.com/nitrictech/go-sdk/api/secrets Secrets,SecretRef > mocks/mockapi/secrets.go
go run github.com/golang/mock/mockgen -package mockapi github.com/nitrictech/go-sdk/api/storage Storage,Bucket > mocks/mockapi/storage.go
go run github.com/golang/mock/mockgen -package mockapi github.com/nitrictech/go-sdk/api/topics Topics,Topic > mocks/mockapi/topics.go

# Runs tests for coverage upload to codecov.io
test-ci: generate
@echo Testing Nitric Go SDK
@go run github.com/onsi/ginkgo/ginkgo -cover -outputdir=./ -coverprofile=all.coverprofile ./resources/... ./api/... ./faas/...
@go run github.com/onsi/ginkgo/ginkgo -cover -outputdir=./ -coverprofile=all.coverprofile ./...

.PHONY: test
test: generate
@echo Testing Nitric Go SDK
@go run github.com/onsi/ginkgo/ginkgo -cover ./resources/... ./api/... ./faas/...
@go run github.com/onsi/ginkgo/ginkgo -cover ./...
67 changes: 0 additions & 67 deletions api/keyvalue/keyvalue.go

This file was deleted.

98 changes: 0 additions & 98 deletions api/keyvalue/keyvalue_test.go

This file was deleted.

66 changes: 0 additions & 66 deletions api/queues/queues.go

This file was deleted.

99 changes: 0 additions & 99 deletions api/queues/queues_test.go

This file was deleted.

Loading
Loading