| 2108 | } |
| 2109 | |
| 2110 | type Snapshot struct { |
| 2111 | Context *RaftContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` |
| 2112 | Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` |
| 2113 | ReadTs uint64 `protobuf:"varint,3,opt,name=read_ts,json=readTs,proto3" json:"read_ts,omitempty"` |
| 2114 | // done is used to indicate that snapshot stream was a success. |
| 2115 | Done bool `protobuf:"varint,4,opt,name=done,proto3" json:"done,omitempty"` |
| 2116 | // since_ts stores the ts of the last snapshot to support diff snap updates. |
| 2117 | SinceTs uint64 `protobuf:"varint,5,opt,name=since_ts,json=sinceTs,proto3" json:"since_ts,omitempty"` |
| 2118 | } |
| 2119 | |
| 2120 | func (m *Snapshot) Reset() { *m = Snapshot{} } |
| 2121 | func (m *Snapshot) String() string { return proto.CompactTextString(m) } |
nothing calls this directly
no outgoing calls
no test coverage detected