MCPcopy Create free account
hub / github.com/dgraph-io/dgraph-benchmarks / Snapshot

Struct Snapshot

bitmap/pb.pb.go:2110–2118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2108}
2109
2110type 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
2120func (m *Snapshot) Reset() { *m = Snapshot{} }
2121func (m *Snapshot) String() string { return proto.CompactTextString(m) }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected