Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transport ¶
type Transport interface { // Init initializes the transport. Init(...Option) // String returns the implementation name. String() string // Dial connects to an address. A context is used for timing out // the creation of the connection. Dial(context.Context, string) (net.Conn, error) // Listen returns a listener. A context is used for timing out // the creation of the listener. Listen(context.Context, string) (net.Listener, error) }
Transport is a transport agnostic abstraction used by the client to connect to an address of the server.
var Default Transport
Default is the transport instance to be auto wired.
Click to show internal directories.
Click to hide internal directories.