Skip to content

Commit

Permalink
feat: add proto for store service
Browse files Browse the repository at this point in the history
  • Loading branch information
w-h-a committed Jul 15, 2024
1 parent 0c6a5d4 commit 4ffb1c4
Show file tree
Hide file tree
Showing 6 changed files with 525 additions and 14 deletions.
16 changes: 12 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,26 @@ style:
test:
go clean -testcache && go test -v -race ./...

.PHONY: proto-account
proto-account:
protoc proto/account/*.proto --go_out=paths=source_relative:. --proto_path=.

.PHONY: proto-health
proto-health:
protoc proto/health/*.proto --go_out=paths=source_relative:. --proto_path=.

.PHONY: proto-account
proto-account:
protoc proto/account/*.proto --go_out=paths=source_relative:. --proto_path=.

.PHONY: proto-rule
proto-rule:
protoc proto/rule/*.proto --go_out=paths=source_relative:. --proto_path=.

.PHONY: proto-snapshot
proto-snapshot:
protoc proto/snapshot/*.proto --go_out=paths=source_relative:. --proto_path=.

.PHONY: proto-restore
proto-restore:
protoc proto/restore/*.proto --go_out=paths=source_relative:. --proto_path=.

.PHONY: proto-runtime
proto-runtime:
protoc proto/runtime/*.proto --go_out=paths=source_relative:. --proto_path=.
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

## Features

| Package | Examples | Use Case |
| --------- | ---------------- | --------------------------------- |
| api | http | build gateway servers |
| client | grpc | synchronous communication |
| runtime | kubernetes | service info |
| security | jwts, TBD | token provisioning and encryption |
| server | grpc | build backend servers |
| store | cockroach, redis | data persistence |
| streams | redis | asynchronous communication |
| telemetry | memory | logs, metrics, and traces |
| Package | Examples | Use Case |
| --------- | ---------- | --------------------------------- |
| api | http | build gateway servers |
| client | grpc | synchronous communication |
| runtime | kubernetes | service info |
| security | jwts, TBD | token provisioning and encryption |
| server | grpc | build backend servers |
| store | cockroach | data persistence |
| streams | TBD | asynchronous communication |
| telemetry | memory | logs, metrics, and traces |
235 changes: 235 additions & 0 deletions proto/restore/restore.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions proto/restore/restore.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
syntax = "proto3";

package restore;

option go_package = "github.com/w-h-a/pkg/proto/restore";

// restore request/response
message RestoreRequest {
string store = 1;
repeated string nodes = 2;
string database = 3;
string table = 4;
string source = 5;
}

message RestoreResponse {}
Loading

0 comments on commit 4ffb1c4

Please sign in to comment.