pb

package
v0.28.1-0...-d35ccfa Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pb_identify_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Identify

type Identify struct {

	// protocolVersion determines compatibility between peers
	ProtocolVersion *string `protobuf:"bytes,5,opt,name=protocolVersion" json:"protocolVersion,omitempty"` // e.g. ipfs/1.0.0
	// 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"` // e.g. go-ipfs/0.1.0
	// 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"`
	// 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"`
	// contains filtered or unexported fields
}

func (*Identify) Descriptor deprecated

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

Deprecated: Use Identify.ProtoReflect.Descriptor instead.

func (*Identify) GetAgentVersion

func (x *Identify) GetAgentVersion() string

func (*Identify) GetListenAddrs

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

func (*Identify) GetObservedAddr

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

func (*Identify) GetProtocolVersion

func (x *Identify) GetProtocolVersion() string

func (*Identify) GetProtocols

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

func (*Identify) GetPublicKey

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

func (*Identify) GetSignedPeerRecord

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

func (*Identify) ProtoMessage

func (*Identify) ProtoMessage()

func (*Identify) ProtoReflect

func (x *Identify) ProtoReflect() protoreflect.Message

func (*Identify) Reset

func (x *Identify) Reset()

func (*Identify) String

func (x *Identify) String() string

Jump to

Keyboard shortcuts

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