Skip to content

Commit

Permalink
push stream position
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-emelin committed Dec 17, 2023
1 parent 43664d1 commit d7863ac
Show file tree
Hide file tree
Showing 6 changed files with 355 additions and 262 deletions.
540 changes: 278 additions & 262 deletions client.pb.go

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions client.pb_easyjson.go

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

3 changes: 3 additions & 0 deletions client.proto
Expand Up @@ -87,6 +87,9 @@ message Push {
Connect connect = 10;
Disconnect disconnect = 11;
Refresh refresh = 12;

// Optional stream position.
StreamPosition stream_position = 13;
}

message ClientInfo {
Expand Down
50 changes: 50 additions & 0 deletions client_vtproto.pb.go

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

3 changes: 3 additions & 0 deletions definitions/client.proto
Expand Up @@ -87,6 +87,9 @@ message Push {
Connect connect = 10;
Disconnect disconnect = 11;
Refresh refresh = 12;

// Optional stream position.
StreamPosition stream_position = 13;
}

message ClientInfo {
Expand Down
1 change: 1 addition & 0 deletions generate.sh
@@ -1,5 +1,6 @@
#!/bin/bash

# check GOBIN, if not set export GOBIN=/path/to/go/bin
# go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
# go install github.com/planetscale/vtprotobuf/cmd/protoc-gen-go-vtproto@latest
# go install github.com/fatih/gomodifytags@v1.13.0
Expand Down

0 comments on commit d7863ac

Please sign in to comment.