p2p

package
v0.0.0-...-7205676 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthConn        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowConn          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupConn = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPex        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPex          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPex = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type AuthSigMessage

type AuthSigMessage struct {
	PubKey crypto.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() crypto.PublicKey

func (*AuthSigMessage) GetSig

func (m *AuthSigMessage) GetSig() []byte

func (*AuthSigMessage) Marshal

func (m *AuthSigMessage) Marshal() (dAtA []byte, err error)

func (*AuthSigMessage) MarshalTo

func (m *AuthSigMessage) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *DefaultNodeInfo) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Message) GetPexAddrs

func (m *Message) GetPexAddrs() *PexAddrs

func (*Message) GetPexRequest

func (m *Message) GetPexRequest() *PexRequest

func (*Message) GetSum

func (m *Message) GetSum() isMessage_Sum

func (*Message) Marshal

func (m *Message) Marshal() (dAtA []byte, err error)

func (*Message) MarshalTo

func (m *Message) MarshalTo(dAtA []byte) (int, error)

func (*Message) MarshalToSizedBuffer

func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) Size

func (m *Message) Size() (n int)

func (*Message) String

func (m *Message) String() string

func (*Message) Unmarshal

func (m *Message) Unmarshal(dAtA []byte) error

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Message) XXX_Merge

func (m *Message) XXX_Merge(src proto.Message)

func (*Message) XXX_OneofWrappers

func (*Message) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

func (m *Message) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *Message_PexAddrs) MarshalTo(dAtA []byte) (int, error)

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"`
}

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) Marshal

func (m *NetAddress) Marshal() (dAtA []byte, err error)

func (*NetAddress) MarshalTo

func (m *NetAddress) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Packet) GetPacketMsg

func (m *Packet) GetPacketMsg() *PacketMsg

func (*Packet) GetPacketPing

func (m *Packet) GetPacketPing() *PacketPing

func (*Packet) GetPacketPong

func (m *Packet) GetPacketPong() *PacketPong

func (*Packet) GetSum

func (m *Packet) GetSum() isPacket_Sum

func (*Packet) Marshal

func (m *Packet) Marshal() (dAtA []byte, err error)

func (*Packet) MarshalTo

func (m *Packet) MarshalTo(dAtA []byte) (int, error)

func (*Packet) MarshalToSizedBuffer

func (m *Packet) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Packet) ProtoMessage

func (*Packet) ProtoMessage()

func (*Packet) Reset

func (m *Packet) Reset()

func (*Packet) Size

func (m *Packet) Size() (n int)

func (*Packet) String

func (m *Packet) String() string

func (*Packet) Unmarshal

func (m *Packet) Unmarshal(dAtA []byte) error

func (*Packet) XXX_DiscardUnknown

func (m *Packet) XXX_DiscardUnknown()

func (*Packet) XXX_Marshal

func (m *Packet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Packet) XXX_Merge

func (m *Packet) XXX_Merge(src proto.Message)

func (*Packet) XXX_OneofWrappers

func (*Packet) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Packet) XXX_Size

func (m *Packet) XXX_Size() int

func (*Packet) XXX_Unmarshal

func (m *Packet) XXX_Unmarshal(b []byte) error

type PacketMsg

type PacketMsg struct {
	ChannelID int32  `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	EOF       bool   `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) Descriptor() ([]byte, []int)

func (*PacketMsg) GetChannelID

func (m *PacketMsg) GetChannelID() int32

func (*PacketMsg) GetData

func (m *PacketMsg) GetData() []byte

func (*PacketMsg) GetEOF

func (m *PacketMsg) GetEOF() bool

func (*PacketMsg) Marshal

func (m *PacketMsg) Marshal() (dAtA []byte, err error)

func (*PacketMsg) MarshalTo

func (m *PacketMsg) MarshalTo(dAtA []byte) (int, error)

func (*PacketMsg) MarshalToSizedBuffer

func (m *PacketMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PacketMsg) ProtoMessage

func (*PacketMsg) ProtoMessage()

func (*PacketMsg) Reset

func (m *PacketMsg) Reset()

func (*PacketMsg) Size

func (m *PacketMsg) Size() (n int)

func (*PacketMsg) String

func (m *PacketMsg) String() string

func (*PacketMsg) Unmarshal

func (m *PacketMsg) Unmarshal(dAtA []byte) error

func (*PacketMsg) XXX_DiscardUnknown

func (m *PacketMsg) XXX_DiscardUnknown()

func (*PacketMsg) XXX_Marshal

func (m *PacketMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PacketMsg) XXX_Merge

func (m *PacketMsg) XXX_Merge(src proto.Message)

func (*PacketMsg) XXX_Size

func (m *PacketMsg) XXX_Size() int

func (*PacketMsg) XXX_Unmarshal

func (m *PacketMsg) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *PacketPing) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *PacketPong) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *Packet_PacketMsg) MarshalTo(dAtA []byte) (int, error)

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) Descriptor() ([]byte, []int)

func (*PexAddrs) GetAddrs

func (m *PexAddrs) GetAddrs() []NetAddress

func (*PexAddrs) Marshal

func (m *PexAddrs) Marshal() (dAtA []byte, err error)

func (*PexAddrs) MarshalTo

func (m *PexAddrs) MarshalTo(dAtA []byte) (int, error)

func (*PexAddrs) MarshalToSizedBuffer

func (m *PexAddrs) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PexAddrs) ProtoMessage

func (*PexAddrs) ProtoMessage()

func (*PexAddrs) Reset

func (m *PexAddrs) Reset()

func (*PexAddrs) Size

func (m *PexAddrs) Size() (n int)

func (*PexAddrs) String

func (m *PexAddrs) String() string

func (*PexAddrs) Unmarshal

func (m *PexAddrs) Unmarshal(dAtA []byte) error

func (*PexAddrs) XXX_DiscardUnknown

func (m *PexAddrs) XXX_DiscardUnknown()

func (*PexAddrs) XXX_Marshal

func (m *PexAddrs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PexAddrs) XXX_Merge

func (m *PexAddrs) XXX_Merge(src proto.Message)

func (*PexAddrs) XXX_Size

func (m *PexAddrs) XXX_Size() int

func (*PexAddrs) XXX_Unmarshal

func (m *PexAddrs) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *PexRequest) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *ProtocolVersion) MarshalTo(dAtA []byte) (int, 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL