identify_pb

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: MIT Imports: 5 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthIdentify        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowIdentify          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupIdentify = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Delta added in v0.1.2

type Delta struct {
	// new protocols now serviced by the peer.
	AddedProtocols []string `protobuf:"bytes,1,rep,name=added_protocols,json=addedProtocols" json:"added_protocols,omitempty"`
	// protocols dropped by the peer.
	RmProtocols          []string `protobuf:"bytes,2,rep,name=rm_protocols,json=rmProtocols" json:"rm_protocols,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Delta) Descriptor added in v0.1.2

func (*Delta) Descriptor() ([]byte, []int)

func (*Delta) GetAddedProtocols added in v0.1.2

func (m *Delta) GetAddedProtocols() []string

func (*Delta) GetRmProtocols added in v0.1.2

func (m *Delta) GetRmProtocols() []string

func (*Delta) Marshal added in v0.1.2

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

func (*Delta) MarshalTo added in v0.1.2

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

func (*Delta) MarshalToSizedBuffer added in v0.4.1

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

func (*Delta) ProtoMessage added in v0.1.2

func (*Delta) ProtoMessage()

func (*Delta) Reset added in v0.1.2

func (m *Delta) Reset()

func (*Delta) Size added in v0.1.2

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

func (*Delta) String added in v0.1.2

func (m *Delta) String() string

func (*Delta) Unmarshal added in v0.1.2

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

func (*Delta) XXX_DiscardUnknown added in v0.1.2

func (m *Delta) XXX_DiscardUnknown()

func (*Delta) XXX_Marshal added in v0.1.2

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

func (*Delta) XXX_Merge added in v0.1.2

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

func (*Delta) XXX_Size added in v0.1.2

func (m *Delta) XXX_Size() int

func (*Delta) XXX_Unmarshal added in v0.1.2

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

type Identify

type Identify struct {
	// protocolVersion determines compatibility between peers
	ProtocolVersion *string `protobuf:"bytes,5,opt,name=protocolVersion" json:"protocolVersion,omitempty"`
	// agentVersion is like a UserAgent string in browsers, or client version in bittorrent
	// includes the client name and client.
	AgentVersion *string `protobuf:"bytes,6,opt,name=agentVersion" json:"agentVersion,omitempty"`
	// publicKey is this node's public key (which also gives its node.ID)
	// - may not need to be sent, as secure channel implies it has been sent.
	// - then again, if we change / disable secure channel, may still want it.
	PublicKey []byte `protobuf:"bytes,1,opt,name=publicKey" json:"publicKey,omitempty"`
	// listenAddrs are the multiaddrs the sender node listens for open connections on
	ListenAddrs [][]byte `protobuf:"bytes,2,rep,name=listenAddrs" json:"listenAddrs,omitempty"`
	// oservedAddr is the multiaddr of the remote endpoint that the sender node perceives
	// this is useful information to convey to the other side, as it helps the remote endpoint
	// determine whether its connection to the local peer goes through NAT.
	ObservedAddr []byte `protobuf:"bytes,4,opt,name=observedAddr" json:"observedAddr,omitempty"`
	// protocols are the services this node is running
	Protocols []string `protobuf:"bytes,3,rep,name=protocols" json:"protocols,omitempty"`
	// a delta update is incompatible with everything else. If this field is included, none of the others can appear.
	Delta *Delta `protobuf:"bytes,7,opt,name=delta" json:"delta,omitempty"`
	// signedPeerRecord contains a serialized SignedEnvelope containing a PeerRecord,
	// signed by the sending node. It contains the same addresses as the listenAddrs field, but
	// in a form that lets us share authenticated addrs with other peers.
	// see github.com/libp2p/go-libp2p-core/record/pb/envelope.proto and
	// github.com/libp2p/go-libp2p-core/peer/pb/peer_record.proto for message definitions.
	SignedPeerRecord     []byte   `protobuf:"bytes,8,opt,name=signedPeerRecord" json:"signedPeerRecord,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Identify) Descriptor

func (*Identify) Descriptor() ([]byte, []int)

func (*Identify) GetAgentVersion

func (m *Identify) GetAgentVersion() string

func (*Identify) GetDelta added in v0.1.2

func (m *Identify) GetDelta() *Delta

func (*Identify) GetListenAddrs

func (m *Identify) GetListenAddrs() [][]byte

func (*Identify) GetObservedAddr

func (m *Identify) GetObservedAddr() []byte

func (*Identify) GetProtocolVersion

func (m *Identify) GetProtocolVersion() string

func (*Identify) GetProtocols

func (m *Identify) GetProtocols() []string

func (*Identify) GetPublicKey

func (m *Identify) GetPublicKey() []byte

func (*Identify) GetSignedPeerRecord added in v0.9.0

func (m *Identify) GetSignedPeerRecord() []byte

func (*Identify) Marshal

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

func (*Identify) MarshalTo

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

func (*Identify) MarshalToSizedBuffer added in v0.4.1

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

func (*Identify) ProtoMessage

func (*Identify) ProtoMessage()

func (*Identify) Reset

func (m *Identify) Reset()

func (*Identify) Size

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

func (*Identify) String

func (m *Identify) String() string

func (*Identify) Unmarshal

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

func (*Identify) XXX_DiscardUnknown

func (m *Identify) XXX_DiscardUnknown()

func (*Identify) XXX_Marshal

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

func (*Identify) XXX_Merge

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

func (*Identify) XXX_Size

func (m *Identify) XXX_Size() int

func (*Identify) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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