File: types.proto

package info (click to toggle)
golang-github-hashicorp-go-raftchunking 0.6.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 148 kB
  • sloc: makefile: 6
file content (23 lines) | stat: -rw-r--r-- 657 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
syntax = "proto3";

option go_package = "types";

package github_com_hashicorp_go_raftchunking_types;

message ChunkInfo {
	// OpNum is the ID of the op, used to ensure values are applied to the
	// right operation
	uint64 op_num = 1;

	// SequenceNum is the current number of the ops; when applying we should
	// see this start at zero and increment by one without skips
	uint32 sequence_num = 2;

	// NumChunks is used to check whether all chunks have been received and
	// reconstruction should be attempted
	uint32 num_chunks = 3;

	// NextExtensions holds inner extensions information for the next layer
	// down of Apply
	bytes next_extensions = 4;
}