Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to send stream position in Push #19

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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