Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn interface { net.Conn inet.ConnSecurity }
Conn is an authenticated, encrypted connection.
type Transport ¶
type Transport interface { // SecureInbound secures an inbound connection. SecureInbound(ctx context.Context, insecure net.Conn) (Conn, error) // SecureOutbound secures an outbound connection. SecureOutbound(ctx context.Context, insecure net.Conn, p peer.ID) (Conn, error) }
A Transport turns inbound and outbound unauthenticated, plain-text connections into authenticated, encrypted connections.
Click to show internal directories.
Click to hide internal directories.