Documentation ¶
Index ¶
- Variables
- type Identify
- func (*Identify) Descriptor() ([]byte, []int)
- func (m *Identify) GetAgentVersion() string
- func (m *Identify) GetListenAddrs() [][]byte
- func (m *Identify) GetObservedAddr() []byte
- func (m *Identify) GetProtocolVersion() string
- func (m *Identify) GetProtocols() []string
- func (m *Identify) GetPublicKey() []byte
- func (m *Identify) Marshal() (dAtA []byte, err error)
- func (m *Identify) MarshalTo(dAtA []byte) (int, error)
- func (*Identify) ProtoMessage()
- func (m *Identify) Reset()
- func (m *Identify) Size() (n int)
- func (m *Identify) String() string
- func (m *Identify) Unmarshal(dAtA []byte) error
- func (m *Identify) XXX_DiscardUnknown()
- func (m *Identify) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Identify) XXX_Merge(src proto.Message)
- func (m *Identify) XXX_Size() int
- func (m *Identify) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthIdentify = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowIdentify = fmt.Errorf("proto: integer overflow") )
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"` // 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Identify) Descriptor ¶
func (*Identify) GetAgentVersion ¶
func (*Identify) GetListenAddrs ¶
func (*Identify) GetObservedAddr ¶
func (*Identify) GetProtocolVersion ¶
func (*Identify) GetProtocols ¶
func (*Identify) GetPublicKey ¶
func (*Identify) ProtoMessage ¶
func (*Identify) ProtoMessage()
func (*Identify) XXX_DiscardUnknown ¶
func (m *Identify) XXX_DiscardUnknown()
func (*Identify) XXX_Marshal ¶
func (*Identify) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.