Documentation ¶
Index ¶
- Variables
- func RegisterCodec(cdc *codec.LegacyAmino)
- type GfSpNode
- func (*GfSpNode) Descriptor() ([]byte, []int)
- func (m *GfSpNode) GetMultiAddr() []string
- func (m *GfSpNode) GetNodeId() string
- func (m *GfSpNode) Marshal() (dAtA []byte, err error)
- func (m *GfSpNode) MarshalTo(dAtA []byte) (int, error)
- func (m *GfSpNode) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GfSpNode) ProtoMessage()
- func (m *GfSpNode) Reset()
- func (m *GfSpNode) Size() (n int)
- func (m *GfSpNode) String() string
- func (m *GfSpNode) Unmarshal(dAtA []byte) error
- func (m *GfSpNode) XXX_DiscardUnknown()
- func (m *GfSpNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GfSpNode) XXX_Merge(src proto.Message)
- func (m *GfSpNode) XXX_Size() int
- func (m *GfSpNode) XXX_Unmarshal(b []byte) error
- type GfSpPing
- func (*GfSpPing) Descriptor() ([]byte, []int)
- func (m *GfSpPing) GetSignBytes() []byte
- func (m *GfSpPing) GetSignature() []byte
- func (m *GfSpPing) GetSpOperatorAddress() string
- func (m *GfSpPing) Marshal() (dAtA []byte, err error)
- func (m *GfSpPing) MarshalTo(dAtA []byte) (int, error)
- func (m *GfSpPing) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GfSpPing) ProtoMessage()
- func (m *GfSpPing) Reset()
- func (m *GfSpPing) Size() (n int)
- func (m *GfSpPing) String() string
- func (m *GfSpPing) Unmarshal(dAtA []byte) error
- func (m *GfSpPing) XXX_DiscardUnknown()
- func (m *GfSpPing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GfSpPing) XXX_Merge(src proto.Message)
- func (m *GfSpPing) XXX_Size() int
- func (m *GfSpPing) XXX_Unmarshal(b []byte) error
- type GfSpPong
- func (*GfSpPong) Descriptor() ([]byte, []int)
- func (m *GfSpPong) GetNodes() []*GfSpNode
- func (m *GfSpPong) GetSignBytes() []byte
- func (m *GfSpPong) GetSignature() []byte
- func (m *GfSpPong) GetSpOperatorAddress() string
- func (m *GfSpPong) Marshal() (dAtA []byte, err error)
- func (m *GfSpPong) MarshalTo(dAtA []byte) (int, error)
- func (m *GfSpPong) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GfSpPong) ProtoMessage()
- func (m *GfSpPong) Reset()
- func (m *GfSpPong) Size() (n int)
- func (m *GfSpPong) String() string
- func (m *GfSpPong) Unmarshal(dAtA []byte) error
- func (m *GfSpPong) XXX_DiscardUnknown()
- func (m *GfSpPong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GfSpPong) XXX_Merge(src proto.Message)
- func (m *GfSpPong) XXX_Size() int
- func (m *GfSpPong) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewAminoCodec(Amino) )
Functions ¶
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
Types ¶
type GfSpNode ¶ added in v0.2.4
type GfSpNode struct { // node_id defines the node id NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` // multi_addr define the node multi addr MultiAddr []string `protobuf:"bytes,2,rep,name=multi_addr,json=multiAddr,proto3" json:"multi_addr,omitempty"` }
Node defines the p2p node info
func (*GfSpNode) Descriptor ¶ added in v0.2.4
func (*GfSpNode) GetMultiAddr ¶ added in v0.2.4
func (*GfSpNode) MarshalToSizedBuffer ¶ added in v0.2.4
func (*GfSpNode) ProtoMessage ¶ added in v0.2.4
func (*GfSpNode) ProtoMessage()
func (*GfSpNode) XXX_DiscardUnknown ¶ added in v0.2.4
func (m *GfSpNode) XXX_DiscardUnknown()
func (*GfSpNode) XXX_Marshal ¶ added in v0.2.4
func (*GfSpNode) XXX_Unmarshal ¶ added in v0.2.4
type GfSpPing ¶ added in v0.2.4
type GfSpPing struct { // sp_operator_address define sp operator public key SpOperatorAddress string `protobuf:"bytes,1,opt,name=sp_operator_address,json=spOperatorAddress,proto3" json:"sp_operator_address,omitempty"` // signature define the signature of sp sign the msg Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` }
Ping defines the heartbeat request between p2p nodes
func (*GfSpPing) Descriptor ¶ added in v0.2.4
func (*GfSpPing) GetSignBytes ¶ added in v0.2.4
GetSignBytes returns the ping message bytes to sign over.
func (*GfSpPing) GetSignature ¶ added in v0.2.4
func (*GfSpPing) GetSpOperatorAddress ¶ added in v0.2.4
func (*GfSpPing) MarshalToSizedBuffer ¶ added in v0.2.4
func (*GfSpPing) ProtoMessage ¶ added in v0.2.4
func (*GfSpPing) ProtoMessage()
func (*GfSpPing) XXX_DiscardUnknown ¶ added in v0.2.4
func (m *GfSpPing) XXX_DiscardUnknown()
func (*GfSpPing) XXX_Marshal ¶ added in v0.2.4
func (*GfSpPing) XXX_Unmarshal ¶ added in v0.2.4
type GfSpPong ¶ added in v0.2.4
type GfSpPong struct { // nodes define the Nodes []*GfSpNode `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` // sp_operator_address define sp operator public key SpOperatorAddress string `protobuf:"bytes,2,opt,name=sp_operator_address,json=spOperatorAddress,proto3" json:"sp_operator_address,omitempty"` // signature define the signature of sp sign the msg Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` }
Pong defines the heartbeat response between p2p nodes
func (*GfSpPong) Descriptor ¶ added in v0.2.4
func (*GfSpPong) GetSignBytes ¶ added in v0.2.4
GetSignBytes returns the pong message bytes to sign over.
func (*GfSpPong) GetSignature ¶ added in v0.2.4
func (*GfSpPong) GetSpOperatorAddress ¶ added in v0.2.4
func (*GfSpPong) MarshalToSizedBuffer ¶ added in v0.2.4
func (*GfSpPong) ProtoMessage ¶ added in v0.2.4
func (*GfSpPong) ProtoMessage()
func (*GfSpPong) XXX_DiscardUnknown ¶ added in v0.2.4
func (m *GfSpPong) XXX_DiscardUnknown()
func (*GfSpPong) XXX_Marshal ¶ added in v0.2.4
func (*GfSpPong) XXX_Unmarshal ¶ added in v0.2.4
Click to show internal directories.
Click to hide internal directories.