Documentation ¶
Index ¶
- Variables
- type HeartBeat
- func (*HeartBeat) Descriptor() ([]byte, []int)
- func (m *HeartBeat) GetID() string
- func (m *HeartBeat) GetTimestamp() int64
- func (m *HeartBeat) Marshal() (dAtA []byte, err error)
- func (m *HeartBeat) MarshalTo(dAtA []byte) (int, error)
- func (m *HeartBeat) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HeartBeat) ProtoMessage()
- func (m *HeartBeat) Reset()
- func (m *HeartBeat) Size() (n int)
- func (m *HeartBeat) String() string
- func (m *HeartBeat) Unmarshal(dAtA []byte) error
- func (m *HeartBeat) XXX_DiscardUnknown()
- func (m *HeartBeat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HeartBeat) XXX_Merge(src proto.Message)
- func (m *HeartBeat) XXX_Size() int
- func (m *HeartBeat) XXX_Unmarshal(b []byte) error
- type LinkNode
- func (*LinkNode) Descriptor() ([]byte, []int)
- func (m *LinkNode) GetID() string
- func (m *LinkNode) GetState() LinkNode_NodeState
- func (m *LinkNode) Marshal() (dAtA []byte, err error)
- func (m *LinkNode) MarshalTo(dAtA []byte) (int, error)
- func (m *LinkNode) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LinkNode) ProtoMessage()
- func (m *LinkNode) Reset()
- func (m *LinkNode) Size() (n int)
- func (m *LinkNode) String() string
- func (m *LinkNode) Unmarshal(dAtA []byte) error
- func (m *LinkNode) XXX_DiscardUnknown()
- func (m *LinkNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LinkNode) XXX_Merge(src proto.Message)
- func (m *LinkNode) XXX_Size() int
- func (m *LinkNode) XXX_Unmarshal(b []byte) error
- type LinkNode_NodeState
- type LinkNodes
- func (*LinkNodes) Descriptor() ([]byte, []int)
- func (m *LinkNodes) GetID() string
- func (m *LinkNodes) GetNodes() []*LinkNode
- func (m *LinkNodes) Marshal() (dAtA []byte, err error)
- func (m *LinkNodes) MarshalTo(dAtA []byte) (int, error)
- func (m *LinkNodes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LinkNodes) ProtoMessage()
- func (m *LinkNodes) Reset()
- func (m *LinkNodes) Size() (n int)
- func (m *LinkNodes) String() string
- func (m *LinkNodes) Unmarshal(dAtA []byte) error
- func (m *LinkNodes) XXX_DiscardUnknown()
- func (m *LinkNodes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LinkNodes) XXX_Merge(src proto.Message)
- func (m *LinkNodes) XXX_Size() int
- func (m *LinkNodes) XXX_Unmarshal(b []byte) error
- type RAFRMsgType
- type RAFTMsg
- func (*RAFTMsg) Descriptor() ([]byte, []int)
- func (m *RAFTMsg) GetMsg() []byte
- func (m *RAFTMsg) GetType() RAFRMsgType
- func (m *RAFTMsg) Marshal() (dAtA []byte, err error)
- func (m *RAFTMsg) MarshalTo(dAtA []byte) (int, error)
- func (m *RAFTMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RAFTMsg) ProtoMessage()
- func (m *RAFTMsg) Reset()
- func (m *RAFTMsg) Size() (n int)
- func (m *RAFTMsg) String() string
- func (m *RAFTMsg) Unmarshal(dAtA []byte) error
- func (m *RAFTMsg) XXX_DiscardUnknown()
- func (m *RAFTMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RAFTMsg) XXX_Merge(src proto.Message)
- func (m *RAFTMsg) XXX_Size() int
- func (m *RAFTMsg) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthRaft = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRaft = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupRaft = fmt.Errorf("proto: unexpected end of group") )
View Source
var LinkNode_NodeState_name = map[int32]string{
0: "UNKNOWN",
1: "ACTIVE",
2: "INACTIVE",
}
Functions ¶
This section is empty.
Types ¶
type HeartBeat ¶
type HeartBeat struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` }
func (*HeartBeat) MarshalToSizedBuffer ¶
func (*HeartBeat) XXX_Marshal ¶
type LinkNode ¶
type LinkNode struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` State LinkNode_NodeState `protobuf:"varint,2,opt,name=State,proto3,enum=raft.LinkNode_NodeState" json:"State,omitempty"` }
func (*LinkNode) GetState ¶
func (m *LinkNode) GetState() LinkNode_NodeState
func (*LinkNode) MarshalToSizedBuffer ¶
func (*LinkNode) XXX_Marshal ¶
type LinkNode_NodeState ¶
type LinkNode_NodeState int32
const ( LinkNode_UNKNOWN LinkNode_NodeState = 0 LinkNode_ACTIVE LinkNode_NodeState = 1 LinkNode_INACTIVE LinkNode_NodeState = 2 )
func (LinkNode_NodeState) EnumDescriptor ¶
func (LinkNode_NodeState) EnumDescriptor() ([]byte, []int)
func (LinkNode_NodeState) String ¶
func (x LinkNode_NodeState) String() string
type LinkNodes ¶
type LinkNodes struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Nodes []*LinkNode `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"` }
func (*LinkNodes) MarshalToSizedBuffer ¶
func (*LinkNodes) XXX_Marshal ¶
type RAFRMsgType ¶
type RAFRMsgType int32
const ( RAFRMsgType_MSG_HEARTBEAT RAFRMsgType = 0 RAFRMsgType_MSG_NODELINK RAFRMsgType = 1 )
func (RAFRMsgType) EnumDescriptor ¶
func (RAFRMsgType) EnumDescriptor() ([]byte, []int)
func (RAFRMsgType) String ¶
func (x RAFRMsgType) String() string
type RAFTMsg ¶
type RAFTMsg struct { Type RAFRMsgType `protobuf:"varint,1,opt,name=type,proto3,enum=raft.RAFRMsgType" json:"type,omitempty"` Msg []byte `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` }
func (*RAFTMsg) GetType ¶
func (m *RAFTMsg) GetType() RAFRMsgType
func (*RAFTMsg) MarshalToSizedBuffer ¶
func (*RAFTMsg) XXX_Marshal ¶
Click to show internal directories.
Click to hide internal directories.