Documentation ¶
Index ¶
- Variables
- type AuthSigMessage
- func (*AuthSigMessage) Descriptor() ([]byte, []int)
- func (m *AuthSigMessage) GetPubKey() keys.PublicKey
- func (m *AuthSigMessage) GetSig() []byte
- func (m *AuthSigMessage) Marshal() (dAtA []byte, err error)
- func (m *AuthSigMessage) MarshalTo(dAtA []byte) (int, error)
- func (m *AuthSigMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AuthSigMessage) ProtoMessage()
- func (m *AuthSigMessage) Reset()
- func (m *AuthSigMessage) Size() (n int)
- func (m *AuthSigMessage) String() string
- func (m *AuthSigMessage) Unmarshal(dAtA []byte) error
- func (m *AuthSigMessage) XXX_DiscardUnknown()
- func (m *AuthSigMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthSigMessage) XXX_Merge(src proto.Message)
- func (m *AuthSigMessage) XXX_Size() int
- func (m *AuthSigMessage) XXX_Unmarshal(b []byte) error
- type DefaultNodeInfo
- func (*DefaultNodeInfo) Descriptor() ([]byte, []int)
- func (m *DefaultNodeInfo) GetChannels() []byte
- func (m *DefaultNodeInfo) GetDefaultNodeID() string
- func (m *DefaultNodeInfo) GetListenAddr() string
- func (m *DefaultNodeInfo) GetMoniker() string
- func (m *DefaultNodeInfo) GetNetwork() string
- func (m *DefaultNodeInfo) GetOther() DefaultNodeInfoOther
- func (m *DefaultNodeInfo) GetProtocolVersion() ProtocolVersion
- func (m *DefaultNodeInfo) GetVersion() string
- func (m *DefaultNodeInfo) Marshal() (dAtA []byte, err error)
- func (m *DefaultNodeInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *DefaultNodeInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DefaultNodeInfo) ProtoMessage()
- func (m *DefaultNodeInfo) Reset()
- func (m *DefaultNodeInfo) Size() (n int)
- func (m *DefaultNodeInfo) String() string
- func (m *DefaultNodeInfo) Unmarshal(dAtA []byte) error
- func (m *DefaultNodeInfo) XXX_DiscardUnknown()
- func (m *DefaultNodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DefaultNodeInfo) XXX_Merge(src proto.Message)
- func (m *DefaultNodeInfo) XXX_Size() int
- func (m *DefaultNodeInfo) XXX_Unmarshal(b []byte) error
- type DefaultNodeInfoOther
- func (*DefaultNodeInfoOther) Descriptor() ([]byte, []int)
- func (m *DefaultNodeInfoOther) GetRPCAddress() string
- func (m *DefaultNodeInfoOther) GetTxIndex() string
- func (m *DefaultNodeInfoOther) Marshal() (dAtA []byte, err error)
- func (m *DefaultNodeInfoOther) MarshalTo(dAtA []byte) (int, error)
- func (m *DefaultNodeInfoOther) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DefaultNodeInfoOther) ProtoMessage()
- func (m *DefaultNodeInfoOther) Reset()
- func (m *DefaultNodeInfoOther) Size() (n int)
- func (m *DefaultNodeInfoOther) String() string
- func (m *DefaultNodeInfoOther) Unmarshal(dAtA []byte) error
- func (m *DefaultNodeInfoOther) XXX_DiscardUnknown()
- func (m *DefaultNodeInfoOther) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DefaultNodeInfoOther) XXX_Merge(src proto.Message)
- func (m *DefaultNodeInfoOther) XXX_Size() int
- func (m *DefaultNodeInfoOther) XXX_Unmarshal(b []byte) error
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetPexAddrs() *PexAddrs
- func (m *Message) GetPexRequest() *PexRequest
- func (m *Message) GetSum() isMessage_Sum
- func (m *Message) Marshal() (dAtA []byte, err error)
- func (m *Message) MarshalTo(dAtA []byte) (int, error)
- func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) Size() (n int)
- func (m *Message) String() string
- func (m *Message) Unmarshal(dAtA []byte) error
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Message) XXX_Merge(src proto.Message)
- func (*Message) XXX_OneofWrappers() []interface{}
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type Message_PexAddrs
- type Message_PexRequest
- type NetAddress
- func (*NetAddress) Descriptor() ([]byte, []int)
- func (m *NetAddress) GetID() string
- func (m *NetAddress) GetIP() string
- func (m *NetAddress) GetPort() uint32
- func (m *NetAddress) GetStr() string
- func (m *NetAddress) Marshal() (dAtA []byte, err error)
- func (m *NetAddress) MarshalTo(dAtA []byte) (int, error)
- func (m *NetAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NetAddress) ProtoMessage()
- func (m *NetAddress) Reset()
- func (m *NetAddress) Size() (n int)
- func (m *NetAddress) String() string
- func (m *NetAddress) Unmarshal(dAtA []byte) error
- func (m *NetAddress) XXX_DiscardUnknown()
- func (m *NetAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NetAddress) XXX_Merge(src proto.Message)
- func (m *NetAddress) XXX_Size() int
- func (m *NetAddress) XXX_Unmarshal(b []byte) error
- type Packet
- func (*Packet) Descriptor() ([]byte, []int)
- func (m *Packet) GetPacketMsg() *PacketMsg
- func (m *Packet) GetPacketPing() *PacketPing
- func (m *Packet) GetPacketPong() *PacketPong
- func (m *Packet) GetSum() isPacket_Sum
- func (m *Packet) Marshal() (dAtA []byte, err error)
- func (m *Packet) MarshalTo(dAtA []byte) (int, error)
- func (m *Packet) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Packet) ProtoMessage()
- func (m *Packet) Reset()
- func (m *Packet) Size() (n int)
- func (m *Packet) String() string
- func (m *Packet) Unmarshal(dAtA []byte) error
- func (m *Packet) XXX_DiscardUnknown()
- func (m *Packet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Packet) XXX_Merge(src proto.Message)
- func (*Packet) XXX_OneofWrappers() []interface{}
- func (m *Packet) XXX_Size() int
- func (m *Packet) XXX_Unmarshal(b []byte) error
- type PacketMsg
- func (*PacketMsg) Descriptor() ([]byte, []int)
- func (m *PacketMsg) GetChannelID() int32
- func (m *PacketMsg) GetData() []byte
- func (m *PacketMsg) GetEOF() int32
- func (m *PacketMsg) Marshal() (dAtA []byte, err error)
- func (m *PacketMsg) MarshalTo(dAtA []byte) (int, error)
- func (m *PacketMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PacketMsg) ProtoMessage()
- func (m *PacketMsg) Reset()
- func (m *PacketMsg) Size() (n int)
- func (m *PacketMsg) String() string
- func (m *PacketMsg) Unmarshal(dAtA []byte) error
- func (m *PacketMsg) XXX_DiscardUnknown()
- func (m *PacketMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PacketMsg) XXX_Merge(src proto.Message)
- func (m *PacketMsg) XXX_Size() int
- func (m *PacketMsg) XXX_Unmarshal(b []byte) error
- type PacketPing
- func (*PacketPing) Descriptor() ([]byte, []int)
- func (m *PacketPing) Marshal() (dAtA []byte, err error)
- func (m *PacketPing) MarshalTo(dAtA []byte) (int, error)
- func (m *PacketPing) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PacketPing) ProtoMessage()
- func (m *PacketPing) Reset()
- func (m *PacketPing) Size() (n int)
- func (m *PacketPing) String() string
- func (m *PacketPing) Unmarshal(dAtA []byte) error
- func (m *PacketPing) XXX_DiscardUnknown()
- func (m *PacketPing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PacketPing) XXX_Merge(src proto.Message)
- func (m *PacketPing) XXX_Size() int
- func (m *PacketPing) XXX_Unmarshal(b []byte) error
- type PacketPong
- func (*PacketPong) Descriptor() ([]byte, []int)
- func (m *PacketPong) Marshal() (dAtA []byte, err error)
- func (m *PacketPong) MarshalTo(dAtA []byte) (int, error)
- func (m *PacketPong) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PacketPong) ProtoMessage()
- func (m *PacketPong) Reset()
- func (m *PacketPong) Size() (n int)
- func (m *PacketPong) String() string
- func (m *PacketPong) Unmarshal(dAtA []byte) error
- func (m *PacketPong) XXX_DiscardUnknown()
- func (m *PacketPong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PacketPong) XXX_Merge(src proto.Message)
- func (m *PacketPong) XXX_Size() int
- func (m *PacketPong) XXX_Unmarshal(b []byte) error
- type Packet_PacketMsg
- type Packet_PacketPing
- type Packet_PacketPong
- type PexAddrs
- func (*PexAddrs) Descriptor() ([]byte, []int)
- func (m *PexAddrs) GetAddrs() []NetAddress
- func (m *PexAddrs) Marshal() (dAtA []byte, err error)
- func (m *PexAddrs) MarshalTo(dAtA []byte) (int, error)
- func (m *PexAddrs) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PexAddrs) ProtoMessage()
- func (m *PexAddrs) Reset()
- func (m *PexAddrs) Size() (n int)
- func (m *PexAddrs) String() string
- func (m *PexAddrs) Unmarshal(dAtA []byte) error
- func (m *PexAddrs) XXX_DiscardUnknown()
- func (m *PexAddrs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PexAddrs) XXX_Merge(src proto.Message)
- func (m *PexAddrs) XXX_Size() int
- func (m *PexAddrs) XXX_Unmarshal(b []byte) error
- type PexRequest
- func (*PexRequest) Descriptor() ([]byte, []int)
- func (m *PexRequest) Marshal() (dAtA []byte, err error)
- func (m *PexRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *PexRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PexRequest) ProtoMessage()
- func (m *PexRequest) Reset()
- func (m *PexRequest) Size() (n int)
- func (m *PexRequest) String() string
- func (m *PexRequest) Unmarshal(dAtA []byte) error
- func (m *PexRequest) XXX_DiscardUnknown()
- func (m *PexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PexRequest) XXX_Merge(src proto.Message)
- func (m *PexRequest) XXX_Size() int
- func (m *PexRequest) XXX_Unmarshal(b []byte) error
- type ProtocolVersion
- func (*ProtocolVersion) Descriptor() ([]byte, []int)
- func (m *ProtocolVersion) GetApp() uint64
- func (m *ProtocolVersion) GetBlock() uint64
- func (m *ProtocolVersion) GetP2P() uint64
- func (m *ProtocolVersion) Marshal() (dAtA []byte, err error)
- func (m *ProtocolVersion) MarshalTo(dAtA []byte) (int, error)
- func (m *ProtocolVersion) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ProtocolVersion) ProtoMessage()
- func (m *ProtocolVersion) Reset()
- func (m *ProtocolVersion) Size() (n int)
- func (m *ProtocolVersion) String() string
- func (m *ProtocolVersion) Unmarshal(dAtA []byte) error
- func (m *ProtocolVersion) XXX_DiscardUnknown()
- func (m *ProtocolVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProtocolVersion) XXX_Merge(src proto.Message)
- func (m *ProtocolVersion) XXX_Size() int
- func (m *ProtocolVersion) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthConnMsgs = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowConnMsgs = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupConnMsgs = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
This section is empty.
Types ¶
type AuthSigMessage ¶
type AuthSigMessage struct { PubKey keys.PublicKey `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key"` Sig []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"` }
func (*AuthSigMessage) Descriptor ¶
func (*AuthSigMessage) Descriptor() ([]byte, []int)
func (*AuthSigMessage) GetPubKey ¶
func (m *AuthSigMessage) GetPubKey() keys.PublicKey
func (*AuthSigMessage) GetSig ¶
func (m *AuthSigMessage) GetSig() []byte
func (*AuthSigMessage) Marshal ¶
func (m *AuthSigMessage) Marshal() (dAtA []byte, err error)
func (*AuthSigMessage) MarshalToSizedBuffer ¶
func (m *AuthSigMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AuthSigMessage) ProtoMessage ¶
func (*AuthSigMessage) ProtoMessage()
func (*AuthSigMessage) Reset ¶
func (m *AuthSigMessage) Reset()
func (*AuthSigMessage) Size ¶
func (m *AuthSigMessage) Size() (n int)
func (*AuthSigMessage) String ¶
func (m *AuthSigMessage) String() string
func (*AuthSigMessage) Unmarshal ¶
func (m *AuthSigMessage) Unmarshal(dAtA []byte) error
func (*AuthSigMessage) XXX_DiscardUnknown ¶
func (m *AuthSigMessage) XXX_DiscardUnknown()
func (*AuthSigMessage) XXX_Marshal ¶
func (m *AuthSigMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuthSigMessage) XXX_Merge ¶
func (m *AuthSigMessage) XXX_Merge(src proto.Message)
func (*AuthSigMessage) XXX_Size ¶
func (m *AuthSigMessage) XXX_Size() int
func (*AuthSigMessage) XXX_Unmarshal ¶
func (m *AuthSigMessage) XXX_Unmarshal(b []byte) error
type DefaultNodeInfo ¶
type DefaultNodeInfo struct { ProtocolVersion ProtocolVersion `protobuf:"bytes,1,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version"` DefaultNodeID string `protobuf:"bytes,2,opt,name=default_node_id,json=defaultNodeId,proto3" json:"default_node_id,omitempty"` ListenAddr string `protobuf:"bytes,3,opt,name=listen_addr,json=listenAddr,proto3" json:"listen_addr,omitempty"` Network string `protobuf:"bytes,4,opt,name=network,proto3" json:"network,omitempty"` Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"` Channels []byte `protobuf:"bytes,6,opt,name=channels,proto3" json:"channels,omitempty"` Moniker string `protobuf:"bytes,7,opt,name=moniker,proto3" json:"moniker,omitempty"` Other DefaultNodeInfoOther `protobuf:"bytes,8,opt,name=other,proto3" json:"other"` }
func (*DefaultNodeInfo) Descriptor ¶
func (*DefaultNodeInfo) Descriptor() ([]byte, []int)
func (*DefaultNodeInfo) GetChannels ¶
func (m *DefaultNodeInfo) GetChannels() []byte
func (*DefaultNodeInfo) GetDefaultNodeID ¶
func (m *DefaultNodeInfo) GetDefaultNodeID() string
func (*DefaultNodeInfo) GetListenAddr ¶
func (m *DefaultNodeInfo) GetListenAddr() string
func (*DefaultNodeInfo) GetMoniker ¶
func (m *DefaultNodeInfo) GetMoniker() string
func (*DefaultNodeInfo) GetNetwork ¶
func (m *DefaultNodeInfo) GetNetwork() string
func (*DefaultNodeInfo) GetOther ¶
func (m *DefaultNodeInfo) GetOther() DefaultNodeInfoOther
func (*DefaultNodeInfo) GetProtocolVersion ¶
func (m *DefaultNodeInfo) GetProtocolVersion() ProtocolVersion
func (*DefaultNodeInfo) GetVersion ¶
func (m *DefaultNodeInfo) GetVersion() string
func (*DefaultNodeInfo) Marshal ¶
func (m *DefaultNodeInfo) Marshal() (dAtA []byte, err error)
func (*DefaultNodeInfo) MarshalToSizedBuffer ¶
func (m *DefaultNodeInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DefaultNodeInfo) ProtoMessage ¶
func (*DefaultNodeInfo) ProtoMessage()
func (*DefaultNodeInfo) Reset ¶
func (m *DefaultNodeInfo) Reset()
func (*DefaultNodeInfo) Size ¶
func (m *DefaultNodeInfo) Size() (n int)
func (*DefaultNodeInfo) String ¶
func (m *DefaultNodeInfo) String() string
func (*DefaultNodeInfo) Unmarshal ¶
func (m *DefaultNodeInfo) Unmarshal(dAtA []byte) error
func (*DefaultNodeInfo) XXX_DiscardUnknown ¶
func (m *DefaultNodeInfo) XXX_DiscardUnknown()
func (*DefaultNodeInfo) XXX_Marshal ¶
func (m *DefaultNodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DefaultNodeInfo) XXX_Merge ¶
func (m *DefaultNodeInfo) XXX_Merge(src proto.Message)
func (*DefaultNodeInfo) XXX_Size ¶
func (m *DefaultNodeInfo) XXX_Size() int
func (*DefaultNodeInfo) XXX_Unmarshal ¶
func (m *DefaultNodeInfo) XXX_Unmarshal(b []byte) error
type DefaultNodeInfoOther ¶
type DefaultNodeInfoOther struct { TxIndex string `protobuf:"bytes,1,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"` RPCAddress string `protobuf:"bytes,2,opt,name=rpc_address,json=rpcAddress,proto3" json:"rpc_address,omitempty"` }
func (*DefaultNodeInfoOther) Descriptor ¶
func (*DefaultNodeInfoOther) Descriptor() ([]byte, []int)
func (*DefaultNodeInfoOther) GetRPCAddress ¶
func (m *DefaultNodeInfoOther) GetRPCAddress() string
func (*DefaultNodeInfoOther) GetTxIndex ¶
func (m *DefaultNodeInfoOther) GetTxIndex() string
func (*DefaultNodeInfoOther) Marshal ¶
func (m *DefaultNodeInfoOther) Marshal() (dAtA []byte, err error)
func (*DefaultNodeInfoOther) MarshalTo ¶
func (m *DefaultNodeInfoOther) MarshalTo(dAtA []byte) (int, error)
func (*DefaultNodeInfoOther) MarshalToSizedBuffer ¶
func (m *DefaultNodeInfoOther) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DefaultNodeInfoOther) ProtoMessage ¶
func (*DefaultNodeInfoOther) ProtoMessage()
func (*DefaultNodeInfoOther) Reset ¶
func (m *DefaultNodeInfoOther) Reset()
func (*DefaultNodeInfoOther) Size ¶
func (m *DefaultNodeInfoOther) Size() (n int)
func (*DefaultNodeInfoOther) String ¶
func (m *DefaultNodeInfoOther) String() string
func (*DefaultNodeInfoOther) Unmarshal ¶
func (m *DefaultNodeInfoOther) Unmarshal(dAtA []byte) error
func (*DefaultNodeInfoOther) XXX_DiscardUnknown ¶
func (m *DefaultNodeInfoOther) XXX_DiscardUnknown()
func (*DefaultNodeInfoOther) XXX_Marshal ¶
func (m *DefaultNodeInfoOther) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DefaultNodeInfoOther) XXX_Merge ¶
func (m *DefaultNodeInfoOther) XXX_Merge(src proto.Message)
func (*DefaultNodeInfoOther) XXX_Size ¶
func (m *DefaultNodeInfoOther) XXX_Size() int
func (*DefaultNodeInfoOther) XXX_Unmarshal ¶
func (m *DefaultNodeInfoOther) XXX_Unmarshal(b []byte) error
type Message ¶
type Message struct { // Types that are valid to be assigned to Sum: // *Message_PexRequest // *Message_PexAddrs Sum isMessage_Sum `protobuf_oneof:"sum"` }
func (*Message) Descriptor ¶
func (*Message) GetPexAddrs ¶
func (*Message) GetPexRequest ¶
func (m *Message) GetPexRequest() *PexRequest
func (*Message) MarshalToSizedBuffer ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_OneofWrappers ¶
func (*Message) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Message) XXX_Unmarshal ¶
type Message_PexAddrs ¶
type Message_PexAddrs struct {
PexAddrs *PexAddrs `protobuf:"bytes,2,opt,name=pex_addrs,json=pexAddrs,proto3,oneof" json:"pex_addrs,omitempty"`
}
func (*Message_PexAddrs) MarshalToSizedBuffer ¶
func (m *Message_PexAddrs) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Message_PexAddrs) Size ¶
func (m *Message_PexAddrs) Size() (n int)
type Message_PexRequest ¶
type Message_PexRequest struct {
PexRequest *PexRequest `protobuf:"bytes,1,opt,name=pex_request,json=pexRequest,proto3,oneof" json:"pex_request,omitempty"`
}
func (*Message_PexRequest) MarshalTo ¶
func (m *Message_PexRequest) MarshalTo(dAtA []byte) (int, error)
func (*Message_PexRequest) MarshalToSizedBuffer ¶
func (m *Message_PexRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Message_PexRequest) Size ¶
func (m *Message_PexRequest) Size() (n int)
type NetAddress ¶
type NetAddress struct { ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` IP string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` Str string `protobuf:"bytes,4,opt,name=str,proto3" json:"str,omitempty"` }
func (*NetAddress) Descriptor ¶
func (*NetAddress) Descriptor() ([]byte, []int)
func (*NetAddress) GetID ¶
func (m *NetAddress) GetID() string
func (*NetAddress) GetIP ¶
func (m *NetAddress) GetIP() string
func (*NetAddress) GetPort ¶
func (m *NetAddress) GetPort() uint32
func (*NetAddress) GetStr ¶
func (m *NetAddress) GetStr() string
func (*NetAddress) Marshal ¶
func (m *NetAddress) Marshal() (dAtA []byte, err error)
func (*NetAddress) MarshalToSizedBuffer ¶
func (m *NetAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*NetAddress) ProtoMessage ¶
func (*NetAddress) ProtoMessage()
func (*NetAddress) Reset ¶
func (m *NetAddress) Reset()
func (*NetAddress) Size ¶
func (m *NetAddress) Size() (n int)
func (*NetAddress) String ¶
func (m *NetAddress) String() string
func (*NetAddress) Unmarshal ¶
func (m *NetAddress) Unmarshal(dAtA []byte) error
func (*NetAddress) XXX_DiscardUnknown ¶
func (m *NetAddress) XXX_DiscardUnknown()
func (*NetAddress) XXX_Marshal ¶
func (m *NetAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NetAddress) XXX_Merge ¶
func (m *NetAddress) XXX_Merge(src proto.Message)
func (*NetAddress) XXX_Size ¶
func (m *NetAddress) XXX_Size() int
func (*NetAddress) XXX_Unmarshal ¶
func (m *NetAddress) XXX_Unmarshal(b []byte) error
type Packet ¶
type Packet struct { // Types that are valid to be assigned to Sum: // *Packet_PacketPing // *Packet_PacketPong // *Packet_PacketMsg Sum isPacket_Sum `protobuf_oneof:"sum"` }
func (*Packet) Descriptor ¶
func (*Packet) GetPacketMsg ¶
func (*Packet) GetPacketPing ¶
func (m *Packet) GetPacketPing() *PacketPing
func (*Packet) GetPacketPong ¶
func (m *Packet) GetPacketPong() *PacketPong
func (*Packet) MarshalToSizedBuffer ¶
func (*Packet) ProtoMessage ¶
func (*Packet) ProtoMessage()
func (*Packet) XXX_DiscardUnknown ¶
func (m *Packet) XXX_DiscardUnknown()
func (*Packet) XXX_Marshal ¶
func (*Packet) XXX_OneofWrappers ¶
func (*Packet) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Packet) XXX_Unmarshal ¶
type PacketMsg ¶
type PacketMsg struct { ChannelID int32 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` EOF int32 `protobuf:"varint,2,opt,name=eof,proto3" json:"eof,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` }
func (*PacketMsg) Descriptor ¶
func (*PacketMsg) GetChannelID ¶
func (*PacketMsg) MarshalToSizedBuffer ¶
func (*PacketMsg) ProtoMessage ¶
func (*PacketMsg) ProtoMessage()
func (*PacketMsg) XXX_DiscardUnknown ¶
func (m *PacketMsg) XXX_DiscardUnknown()
func (*PacketMsg) XXX_Marshal ¶
func (*PacketMsg) XXX_Unmarshal ¶
type PacketPing ¶
type PacketPing struct { }
func (*PacketPing) Descriptor ¶
func (*PacketPing) Descriptor() ([]byte, []int)
func (*PacketPing) Marshal ¶
func (m *PacketPing) Marshal() (dAtA []byte, err error)
func (*PacketPing) MarshalToSizedBuffer ¶
func (m *PacketPing) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PacketPing) ProtoMessage ¶
func (*PacketPing) ProtoMessage()
func (*PacketPing) Reset ¶
func (m *PacketPing) Reset()
func (*PacketPing) Size ¶
func (m *PacketPing) Size() (n int)
func (*PacketPing) String ¶
func (m *PacketPing) String() string
func (*PacketPing) Unmarshal ¶
func (m *PacketPing) Unmarshal(dAtA []byte) error
func (*PacketPing) XXX_DiscardUnknown ¶
func (m *PacketPing) XXX_DiscardUnknown()
func (*PacketPing) XXX_Marshal ¶
func (m *PacketPing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PacketPing) XXX_Merge ¶
func (m *PacketPing) XXX_Merge(src proto.Message)
func (*PacketPing) XXX_Size ¶
func (m *PacketPing) XXX_Size() int
func (*PacketPing) XXX_Unmarshal ¶
func (m *PacketPing) XXX_Unmarshal(b []byte) error
type PacketPong ¶
type PacketPong struct { }
func (*PacketPong) Descriptor ¶
func (*PacketPong) Descriptor() ([]byte, []int)
func (*PacketPong) Marshal ¶
func (m *PacketPong) Marshal() (dAtA []byte, err error)
func (*PacketPong) MarshalToSizedBuffer ¶
func (m *PacketPong) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PacketPong) ProtoMessage ¶
func (*PacketPong) ProtoMessage()
func (*PacketPong) Reset ¶
func (m *PacketPong) Reset()
func (*PacketPong) Size ¶
func (m *PacketPong) Size() (n int)
func (*PacketPong) String ¶
func (m *PacketPong) String() string
func (*PacketPong) Unmarshal ¶
func (m *PacketPong) Unmarshal(dAtA []byte) error
func (*PacketPong) XXX_DiscardUnknown ¶
func (m *PacketPong) XXX_DiscardUnknown()
func (*PacketPong) XXX_Marshal ¶
func (m *PacketPong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PacketPong) XXX_Merge ¶
func (m *PacketPong) XXX_Merge(src proto.Message)
func (*PacketPong) XXX_Size ¶
func (m *PacketPong) XXX_Size() int
func (*PacketPong) XXX_Unmarshal ¶
func (m *PacketPong) XXX_Unmarshal(b []byte) error
type Packet_PacketMsg ¶
type Packet_PacketMsg struct {
PacketMsg *PacketMsg `protobuf:"bytes,3,opt,name=packet_msg,json=packetMsg,proto3,oneof" json:"packet_msg,omitempty"`
}
func (*Packet_PacketMsg) MarshalToSizedBuffer ¶
func (m *Packet_PacketMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Packet_PacketMsg) Size ¶
func (m *Packet_PacketMsg) Size() (n int)
type Packet_PacketPing ¶
type Packet_PacketPing struct {
PacketPing *PacketPing `protobuf:"bytes,1,opt,name=packet_ping,json=packetPing,proto3,oneof" json:"packet_ping,omitempty"`
}
func (*Packet_PacketPing) MarshalTo ¶
func (m *Packet_PacketPing) MarshalTo(dAtA []byte) (int, error)
func (*Packet_PacketPing) MarshalToSizedBuffer ¶
func (m *Packet_PacketPing) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Packet_PacketPing) Size ¶
func (m *Packet_PacketPing) Size() (n int)
type Packet_PacketPong ¶
type Packet_PacketPong struct {
PacketPong *PacketPong `protobuf:"bytes,2,opt,name=packet_pong,json=packetPong,proto3,oneof" json:"packet_pong,omitempty"`
}
func (*Packet_PacketPong) MarshalTo ¶
func (m *Packet_PacketPong) MarshalTo(dAtA []byte) (int, error)
func (*Packet_PacketPong) MarshalToSizedBuffer ¶
func (m *Packet_PacketPong) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Packet_PacketPong) Size ¶
func (m *Packet_PacketPong) Size() (n int)
type PexAddrs ¶
type PexAddrs struct {
Addrs []NetAddress `protobuf:"bytes,1,rep,name=addrs,proto3" json:"addrs"`
}
func (*PexAddrs) Descriptor ¶
func (*PexAddrs) GetAddrs ¶
func (m *PexAddrs) GetAddrs() []NetAddress
func (*PexAddrs) MarshalToSizedBuffer ¶
func (*PexAddrs) ProtoMessage ¶
func (*PexAddrs) ProtoMessage()
func (*PexAddrs) XXX_DiscardUnknown ¶
func (m *PexAddrs) XXX_DiscardUnknown()
func (*PexAddrs) XXX_Marshal ¶
func (*PexAddrs) XXX_Unmarshal ¶
type PexRequest ¶
type PexRequest struct { }
func (*PexRequest) Descriptor ¶
func (*PexRequest) Descriptor() ([]byte, []int)
func (*PexRequest) Marshal ¶
func (m *PexRequest) Marshal() (dAtA []byte, err error)
func (*PexRequest) MarshalToSizedBuffer ¶
func (m *PexRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PexRequest) ProtoMessage ¶
func (*PexRequest) ProtoMessage()
func (*PexRequest) Reset ¶
func (m *PexRequest) Reset()
func (*PexRequest) Size ¶
func (m *PexRequest) Size() (n int)
func (*PexRequest) String ¶
func (m *PexRequest) String() string
func (*PexRequest) Unmarshal ¶
func (m *PexRequest) Unmarshal(dAtA []byte) error
func (*PexRequest) XXX_DiscardUnknown ¶
func (m *PexRequest) XXX_DiscardUnknown()
func (*PexRequest) XXX_Marshal ¶
func (m *PexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PexRequest) XXX_Merge ¶
func (m *PexRequest) XXX_Merge(src proto.Message)
func (*PexRequest) XXX_Size ¶
func (m *PexRequest) XXX_Size() int
func (*PexRequest) XXX_Unmarshal ¶
func (m *PexRequest) XXX_Unmarshal(b []byte) error
type ProtocolVersion ¶
type ProtocolVersion struct { P2P uint64 `protobuf:"varint,1,opt,name=p2p,proto3" json:"p2p,omitempty"` Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"` App uint64 `protobuf:"varint,3,opt,name=app,proto3" json:"app,omitempty"` }
func (*ProtocolVersion) Descriptor ¶
func (*ProtocolVersion) Descriptor() ([]byte, []int)
func (*ProtocolVersion) GetApp ¶
func (m *ProtocolVersion) GetApp() uint64
func (*ProtocolVersion) GetBlock ¶
func (m *ProtocolVersion) GetBlock() uint64
func (*ProtocolVersion) GetP2P ¶
func (m *ProtocolVersion) GetP2P() uint64
func (*ProtocolVersion) Marshal ¶
func (m *ProtocolVersion) Marshal() (dAtA []byte, err error)
func (*ProtocolVersion) MarshalToSizedBuffer ¶
func (m *ProtocolVersion) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ProtocolVersion) ProtoMessage ¶
func (*ProtocolVersion) ProtoMessage()
func (*ProtocolVersion) Reset ¶
func (m *ProtocolVersion) Reset()
func (*ProtocolVersion) Size ¶
func (m *ProtocolVersion) Size() (n int)
func (*ProtocolVersion) String ¶
func (m *ProtocolVersion) String() string
func (*ProtocolVersion) Unmarshal ¶
func (m *ProtocolVersion) Unmarshal(dAtA []byte) error
func (*ProtocolVersion) XXX_DiscardUnknown ¶
func (m *ProtocolVersion) XXX_DiscardUnknown()
func (*ProtocolVersion) XXX_Marshal ¶
func (m *ProtocolVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProtocolVersion) XXX_Merge ¶
func (m *ProtocolVersion) XXX_Merge(src proto.Message)
func (*ProtocolVersion) XXX_Size ¶
func (m *ProtocolVersion) XXX_Size() int
func (*ProtocolVersion) XXX_Unmarshal ¶
func (m *ProtocolVersion) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.