Documentation ¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
cluster.proto
It has these top-level messages:
Negotiate Header Heartbeat Vote
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Type_name = map[int32]string{
1: "HEARTBEAT",
2: "VOTE",
}
View Source
var Type_value = map[string]int32{
"HEARTBEAT": 1,
"VOTE": 2,
}
Functions ¶
This section is empty.
Types ¶
type Header ¶
type Header struct { Type *Type `protobuf:"varint,1,opt,name=type,enum=pb.Type" json:"type,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
type Heartbeat ¶
type Heartbeat struct { ViewId *int64 `protobuf:"varint,1,opt,name=viewId" json:"viewId,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Heartbeat) ProtoMessage ¶
func (*Heartbeat) ProtoMessage()
type Negotiate ¶
type Negotiate struct { Magic *string `protobuf:"bytes,1,req,name=magic" json:"magic,omitempty"` Version *int32 `protobuf:"varint,2,req,name=version" json:"version,omitempty"` Options []string `protobuf:"bytes,3,rep,name=options" json:"options,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Negotiate) GetOptions ¶
func (*Negotiate) GetVersion ¶
func (*Negotiate) ProtoMessage ¶
func (*Negotiate) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.