You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
647 B
Protocol Buffer
35 lines
647 B
Protocol Buffer
syntax="proto2";
|
|
|
|
|
|
package jraft;
|
|
|
|
import "raft.proto";
|
|
import "local_file_meta.proto";
|
|
|
|
option java_package="com.alipay.sofa.jraft.entity";
|
|
option java_outer_classname = "LocalStorageOutter";
|
|
|
|
|
|
message ConfigurationPBMeta {
|
|
repeated string peers = 1;
|
|
repeated string old_peers = 2;
|
|
};
|
|
|
|
message LogPBMeta {
|
|
required int64 first_log_index = 1;
|
|
};
|
|
|
|
message StablePBMeta {
|
|
required int64 term = 1;
|
|
required string votedfor = 2;
|
|
};
|
|
|
|
message LocalSnapshotPbMeta {
|
|
message File {
|
|
required string name = 1;
|
|
optional LocalFileMeta meta = 2;
|
|
};
|
|
optional SnapshotMeta meta = 1;
|
|
repeated File files = 2;
|
|
}
|