Skip to content

Commit

Permalink
feat: add client_id to notifications (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
hydra-yse authored Feb 17, 2025
1 parent 2b67f77 commit 30a18f4
Show file tree
Hide file tree
Showing 5 changed files with 134 additions and 97 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ require (
github.com/golang-migrate/migrate/v4 v4.17.1
github.com/google/uuid v1.6.0
github.com/jackc/pgx/v5 v5.5.5
github.com/markbates/pkger v0.17.1
github.com/mattn/go-sqlite3 v1.14.22
github.com/stretchr/testify v1.9.0
github.com/tv42/zbase32 v0.0.0-20220222190657-f76a9fc892fa
Expand All @@ -36,6 +35,7 @@ require (
github.com/jackc/pgx/v4 v4.18.2 // indirect
github.com/jackc/puddle/v2 v2.2.1 // indirect
github.com/lib/pq v1.10.9 // indirect
github.com/markbates/pkger v0.17.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rogpeppe/go-internal v1.13.1 // indirect
go.uber.org/atomic v1.7.0 // indirect
Expand Down
127 changes: 76 additions & 51 deletions proto/sync.pb.go

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

3 changes: 2 additions & 1 deletion proto/sync.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ message SetRecordRequest {
Record record = 1;
uint32 request_time = 2;
string signature = 3;
optional string client_id = 4;
}
enum SetRecordStatus {
SUCCESS = 0;
Expand All @@ -42,4 +43,4 @@ message ListenChangesRequest {
string signature = 2;
}

message Notification {}
message Notification { optional string client_id = 1; }
Loading

0 comments on commit 30a18f4

Please sign in to comment.