Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn interface { closer.Closer // AcceptStream returns the next stream opened by the peer, blocking until one is available. AcceptStream(context.Context) (Stream, error) // OpenStream opens a new bidirectional stream. // There is no signaling to the peer about new streams. // The peer can only accept the stream after data has been sent on it. OpenStream(context.Context) (Stream, error) // LocalAddr returns the local address. LocalAddr() net.Addr // RemoteAddr returns the address of the peer. RemoteAddr() net.Addr // IsClosedError checks whenever the passed error is a closed connection error. IsClosedError(error) bool }
Click to show internal directories.
Click to hide internal directories.