Skip to content

Commit

Permalink
feat!: update go-sdk to v1 (#81)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Transition to v1 nitric proto contracts
---------

Co-authored-by: Ryan Cartwright <[email protected]>
Co-authored-by: Tim Holm <[email protected]>
  • Loading branch information
3 people authored Jun 18, 2024
1 parent 0eac7a8 commit e9891a2
Show file tree
Hide file tree
Showing 121 changed files with 5,490 additions and 9,337 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: 1.21
- name: Check License Headers
run: make license-header-check
- name: Run Tests
Expand Down
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,17 @@ ifndef GOPATH
endif

generate:
go run github.com/golang/mock/mockgen github.com/nitrictech/nitric/core/pkg/api/nitric/v1 DocumentServiceClient,EventServiceClient,TopicServiceClient,QueueServiceClient,StorageServiceClient,FaasServiceClient,FaasService_TriggerStreamClient,DocumentService_QueryStreamClient,SecretServiceClient,ResourceServiceClient > mocks/clients.go
go run github.com/golang/mock/mockgen github.com/nitrictech/nitric/core/pkg/api/nitric/v1 DocumentServiceServer,EventServiceServer,TopicServiceServer,QueueServiceServer,StorageServiceServer,FaasServiceServer,FaasService_TriggerStreamServer,DocumentService_QueryStreamServer,SecretServiceServer > mocks/servers.go
go run github.com/golang/mock/mockgen github.com/nitrictech/nitric/core/pkg/proto/kvstore/v1 KvStoreClient,KvStore_ScanKeysClient > mocks/keyvalue.go
go run github.com/golang/mock/mockgen github.com/nitrictech/nitric/core/pkg/proto/queues/v1 QueuesClient > mocks/queues.go
go run github.com/golang/mock/mockgen github.com/nitrictech/nitric/core/pkg/proto/storage/v1 StorageClient > mocks/storage.go
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/storage Storage,Bucket > mocks/mockapi/storage.go
go run github.com/golang/mock/mockgen -package mockapi github.com/nitrictech/go-sdk/api/documents Documents,CollectionRef > mocks/mockapi/documents.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/events Events,Topic > mocks/mockapi/events.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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</p>

<h2 align="center">
Build <a href="https://nitric.io">nitric</a> applications with Python
Build <a href="https://nitric.io">nitric</a> applications with Go
</h2>

<p align="center">
Expand All @@ -22,7 +22,7 @@

# Go SDK for Nitric

The Go SDK supports the use of the Nitric framework with GoLang 1.16. For more information, check out the main [Nitric repo](https://github.com/nitrictech/nitric).
The Go SDK supports the use of the Nitric framework with GoLang 1.19. For more information, check out the main [Nitric repo](https://github.com/nitrictech/nitric).

Nitric SDKs provide an infrastructure-as-code style that lets you define resources in code. You can also write the functions that support the logic behind APIs, subscribers and schedules.

Expand Down
86 changes: 0 additions & 86 deletions api/documents/collection_group_ref.go

This file was deleted.

131 changes: 0 additions & 131 deletions api/documents/collection_group_ref_test.go

This file was deleted.

109 changes: 0 additions & 109 deletions api/documents/collection_ref.go

This file was deleted.

Loading

0 comments on commit e9891a2

Please sign in to comment.