Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handshaker ¶
type Handshaker interface { // Execute executes the handshake with a context. // Returning an error cancels the attempt. Execute(ctx context.Context) (*Result, error) // Handle handles an incoming packet. // The buffer will be re-used after the func returns. // Returns if we expect more handshake packets. Handle(data []byte) bool // Close cleans up any resources allocated by the handshake. Close() }
Handshaker performs an identity handshake.
Click to show internal directories.
Click to hide internal directories.