Skip to content

Commit 30a18f4

Browse files
authored
feat: add client_id to notifications (#17)
1 parent 2b67f77 commit 30a18f4

5 files changed

Lines changed: 134 additions & 97 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ require (
1111
github.com/golang-migrate/migrate/v4 v4.17.1
1212
github.com/google/uuid v1.6.0
1313
github.com/jackc/pgx/v5 v5.5.5
14-
github.com/markbates/pkger v0.17.1
1514
github.com/mattn/go-sqlite3 v1.14.22
1615
github.com/stretchr/testify v1.9.0
1716
github.com/tv42/zbase32 v0.0.0-20220222190657-f76a9fc892fa
@@ -36,6 +35,7 @@ require (
3635
github.com/jackc/pgx/v4 v4.18.2 // indirect
3736
github.com/jackc/puddle/v2 v2.2.1 // indirect
3837
github.com/lib/pq v1.10.9 // indirect
38+
github.com/markbates/pkger v0.17.1 // indirect
3939
github.com/pmezard/go-difflib v1.0.0 // indirect
4040
github.com/rogpeppe/go-internal v1.13.1 // indirect
4141
go.uber.org/atomic v1.7.0 // indirect

proto/sync.pb.go

Lines changed: 76 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/sync.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ message SetRecordRequest {
2020
Record record = 1;
2121
uint32 request_time = 2;
2222
string signature = 3;
23+
optional string client_id = 4;
2324
}
2425
enum SetRecordStatus {
2526
SUCCESS = 0;
@@ -42,4 +43,4 @@ message ListenChangesRequest {
4243
string signature = 2;
4344
}
4445

45-
message Notification {}
46+
message Notification { optional string client_id = 1; }

0 commit comments

Comments
 (0)