代码拉取完成,页面将自动刷新
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v4.25.3
// source: gossip.proto
package cluster
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
anypb "google.golang.org/protobuf/types/known/anypb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type GossipRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
FromMemberId string `protobuf:"bytes,2,opt,name=from_member_id,json=fromMemberId,proto3" json:"from_member_id,omitempty"`
State *GossipState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
}
func (x *GossipRequest) Reset() {
*x = GossipRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_gossip_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GossipRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GossipRequest) ProtoMessage() {}
func (x *GossipRequest) ProtoReflect() protoreflect.Message {
mi := &file_gossip_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GossipRequest.ProtoReflect.Descriptor instead.
func (*GossipRequest) Descriptor() ([]byte, []int) {
return file_gossip_proto_rawDescGZIP(), []int{0}
}
func (x *GossipRequest) GetFromMemberId() string {
if x != nil {
return x.FromMemberId
}
return ""
}
func (x *GossipRequest) GetState() *GossipState {
if x != nil {
return x.State
}
return nil
}
// Ack a gossip request
type GossipResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
State *GossipState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
}
func (x *GossipResponse) Reset() {
*x = GossipResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_gossip_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GossipResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GossipResponse) ProtoMessage() {}
func (x *GossipResponse) ProtoReflect() protoreflect.Message {
mi := &file_gossip_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GossipResponse.ProtoReflect.Descriptor instead.
func (*GossipResponse) Descriptor() ([]byte, []int) {
return file_gossip_proto_rawDescGZIP(), []int{1}
}
func (x *GossipResponse) GetState() *GossipState {
if x != nil {
return x.State
}
return nil
}
// string key is member id
// GossipState is the state of that member
type GossipState struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Members map[string]*GossipMemberState `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *GossipState) Reset() {
*x = GossipState{}
if protoimpl.UnsafeEnabled {
mi := &file_gossip_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GossipState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GossipState) ProtoMessage() {}
func (x *GossipState) ProtoReflect() protoreflect.Message {
mi := &file_gossip_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GossipState.ProtoReflect.Descriptor instead.
func (*GossipState) Descriptor() ([]byte, []int) {
return file_gossip_proto_rawDescGZIP(), []int{2}
}
func (x *GossipState) GetMembers() map[string]*GossipMemberState {
if x != nil {
return x.Members
}
return nil
}
// string key is the key of the gossip value, e.g. "heartbeat"
// GossipKeyValue is the value of that key
type GossipMemberState struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Values map[string]*GossipKeyValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *GossipMemberState) Reset() {
*x = GossipMemberState{}
if protoimpl.UnsafeEnabled {
mi := &file_gossip_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GossipMemberState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GossipMemberState) ProtoMessage() {}
func (x *GossipMemberState) ProtoReflect() protoreflect.Message {
mi := &file_gossip_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GossipMemberState.ProtoReflect.Descriptor instead.
func (*GossipMemberState) Descriptor() ([]byte, []int) {
return file_gossip_proto_rawDescGZIP(), []int{3}
}
func (x *GossipMemberState) GetValues() map[string]*GossipKeyValue {
if x != nil {
return x.Values
}
return nil
}
// a known key might be heartbeat. if we locally tag each entry with a local timestamp
// this means that we can measure if we have not received a new heartbeat from one member in some time
// even if we don't know the exact time the heartbeat was issued, due to clock differences.
// we still know when _we_ as in this node, got this data.
// and we can measure time from then til now.
//
// if we got a hear-beat from another node, and X seconds pass, we can assume it to be dead
type GossipKeyValue struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
SequenceNumber int64 `protobuf:"varint,2,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` //version is local to the owner member
Value *anypb.Any `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` //value is any format
LocalTimestampUnixMilliseconds int64 `protobuf:"varint,5,opt,name=local_timestamp_unix_milliseconds,json=localTimestampUnixMilliseconds,proto3" json:"local_timestamp_unix_milliseconds,omitempty"`
}
func (x *GossipKeyValue) Reset() {
*x = GossipKeyValue{}
if protoimpl.UnsafeEnabled {
mi := &file_gossip_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GossipKeyValue) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GossipKeyValue) ProtoMessage() {}
func (x *GossipKeyValue) ProtoReflect() protoreflect.Message {
mi := &file_gossip_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GossipKeyValue.ProtoReflect.Descriptor instead.
func (*GossipKeyValue) Descriptor() ([]byte, []int) {
return file_gossip_proto_rawDescGZIP(), []int{4}
}
func (x *GossipKeyValue) GetSequenceNumber() int64 {
if x != nil {
return x.SequenceNumber
}
return 0
}
func (x *GossipKeyValue) GetValue() *anypb.Any {
if x != nil {
return x.Value
}
return nil
}
func (x *GossipKeyValue) GetLocalTimestampUnixMilliseconds() int64 {
if x != nil {
return x.LocalTimestampUnixMilliseconds
}
return 0
}
// special datatype that is known by gossip actor
// set key
// remove key
// get keys
type GossipMap struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Items map[string]*anypb.Any `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *GossipMap) Reset() {
*x = GossipMap{}
if protoimpl.UnsafeEnabled {
mi := &file_gossip_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GossipMap) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GossipMap) ProtoMessage() {}
func (x *GossipMap) ProtoReflect() protoreflect.Message {
mi := &file_gossip_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GossipMap.ProtoReflect.Descriptor instead.
func (*GossipMap) Descriptor() ([]byte, []int) {
return file_gossip_proto_rawDescGZIP(), []int{5}
}
func (x *GossipMap) GetItems() map[string]*anypb.Any {
if x != nil {
return x.Items
}
return nil
}
var File_gossip_proto protoreflect.FileDescriptor
var file_gossip_proto_rawDesc = []byte{
0x0a, 0x0c, 0x67, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07,
0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x22, 0x61, 0x0a, 0x0d, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x6d, 0x65, 0x6d, 0x62,
0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x72, 0x6f,
0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x05, 0x73, 0x74, 0x61,
0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x6c, 0x75, 0x73, 0x74,
0x65, 0x72, 0x2e, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05,
0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x3c, 0x0a, 0x0e, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72,
0x2e, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74,
0x61, 0x74, 0x65, 0x22, 0xa2, 0x01, 0x0a, 0x0b, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x53, 0x74,
0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x01,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x47,
0x6f, 0x73, 0x73, 0x69, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65,
0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73,
0x1a, 0x56, 0x0a, 0x0c, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,
0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
0x65, 0x79, 0x12, 0x30, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x6f, 0x73, 0x73,
0x69, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa7, 0x01, 0x0a, 0x11, 0x47, 0x6f, 0x73,
0x73, 0x69, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3e,
0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26,
0x2e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x4d,
0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65,
0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x52,
0x0a, 0x0b, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a,
0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
0x2d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17,
0x2e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x4b,
0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
0x38, 0x01, 0x22, 0xb0, 0x01, 0x0a, 0x0e, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x4b, 0x65, 0x79,
0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63,
0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e,
0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2a,
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
0x41, 0x6e, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x49, 0x0a, 0x21, 0x6c, 0x6f,
0x63, 0x61, 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x75, 0x6e,
0x69, 0x78, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18,
0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1e, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x54, 0x69, 0x6d, 0x65,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x55, 0x6e, 0x69, 0x78, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65,
0x63, 0x6f, 0x6e, 0x64, 0x73, 0x22, 0x90, 0x01, 0x0a, 0x09, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70,
0x4d, 0x61, 0x70, 0x12, 0x33, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x6f, 0x73,
0x73, 0x69, 0x70, 0x4d, 0x61, 0x70, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72,
0x79, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x1a, 0x4e, 0x0a, 0x0a, 0x49, 0x74, 0x65, 0x6d,
0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x05, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x2c, 0x5a, 0x2a, 0x2f, 0x67, 0x69, 0x74,
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x73, 0x79, 0x6e, 0x6b, 0x72, 0x6f, 0x6e,
0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x2d, 0x67, 0x6f, 0x2f, 0x63,
0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_gossip_proto_rawDescOnce sync.Once
file_gossip_proto_rawDescData = file_gossip_proto_rawDesc
)
func file_gossip_proto_rawDescGZIP() []byte {
file_gossip_proto_rawDescOnce.Do(func() {
file_gossip_proto_rawDescData = protoimpl.X.CompressGZIP(file_gossip_proto_rawDescData)
})
return file_gossip_proto_rawDescData
}
var file_gossip_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_gossip_proto_goTypes = []interface{}{
(*GossipRequest)(nil), // 0: cluster.GossipRequest
(*GossipResponse)(nil), // 1: cluster.GossipResponse
(*GossipState)(nil), // 2: cluster.GossipState
(*GossipMemberState)(nil), // 3: cluster.GossipMemberState
(*GossipKeyValue)(nil), // 4: cluster.GossipKeyValue
(*GossipMap)(nil), // 5: cluster.GossipMap
nil, // 6: cluster.GossipState.MembersEntry
nil, // 7: cluster.GossipMemberState.ValuesEntry
nil, // 8: cluster.GossipMap.ItemsEntry
(*anypb.Any)(nil), // 9: google.protobuf.Any
}
var file_gossip_proto_depIdxs = []int32{
2, // 0: cluster.GossipRequest.state:type_name -> cluster.GossipState
2, // 1: cluster.GossipResponse.state:type_name -> cluster.GossipState
6, // 2: cluster.GossipState.members:type_name -> cluster.GossipState.MembersEntry
7, // 3: cluster.GossipMemberState.values:type_name -> cluster.GossipMemberState.ValuesEntry
9, // 4: cluster.GossipKeyValue.value:type_name -> google.protobuf.Any
8, // 5: cluster.GossipMap.items:type_name -> cluster.GossipMap.ItemsEntry
3, // 6: cluster.GossipState.MembersEntry.value:type_name -> cluster.GossipMemberState
4, // 7: cluster.GossipMemberState.ValuesEntry.value:type_name -> cluster.GossipKeyValue
9, // 8: cluster.GossipMap.ItemsEntry.value:type_name -> google.protobuf.Any
9, // [9:9] is the sub-list for method output_type
9, // [9:9] is the sub-list for method input_type
9, // [9:9] is the sub-list for extension type_name
9, // [9:9] is the sub-list for extension extendee
0, // [0:9] is the sub-list for field type_name
}
func init() { file_gossip_proto_init() }
func file_gossip_proto_init() {
if File_gossip_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_gossip_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GossipRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_gossip_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GossipResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_gossip_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GossipState); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_gossip_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GossipMemberState); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_gossip_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GossipKeyValue); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_gossip_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GossipMap); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_gossip_proto_rawDesc,
NumEnums: 0,
NumMessages: 9,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_gossip_proto_goTypes,
DependencyIndexes: file_gossip_proto_depIdxs,
MessageInfos: file_gossip_proto_msgTypes,
}.Build()
File_gossip_proto = out.File
file_gossip_proto_rawDesc = nil
file_gossip_proto_goTypes = nil
file_gossip_proto_depIdxs = nil
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。