v200

package
v2.4.9-gm Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidAgentStatus = errors.New("invalid agent status")
	ErrInvalidCertIssue   = errors.New("invalid issue request")
)

Functions

This section is empty.

Types

type V200Handshaker

type V200Handshaker struct {
	// contains filtered or unexported fields
}

V200Handshaker exchange status data over protocol version 1.0.0

func (*V200Handshaker) DoForInbound

func (h *V200Handshaker) DoForInbound(ctx context.Context) (*p2pcommon.HandshakeResult, error)

DoForInbound is handle handshake from inbound peer

func (*V200Handshaker) DoForOutbound

func (h *V200Handshaker) DoForOutbound(ctx context.Context) (*p2pcommon.HandshakeResult, error)

handshakeOutboundPeer start handshake with outbound peer

func (*V200Handshaker) GetMsgRW

func (h *V200Handshaker) GetMsgRW() p2pcommon.MsgReadWriter

Jump to

Keyboard shortcuts

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