Documentation
¶
Overview ¶
Package connection contains the types for building and pooling connections that can speak the MongoDB Wire Protocol. Since this low level library is meant to be used in the context of either a driver or a server there are some extra identifiers on a connection so one can keep track of what a connection is. This package purposefully hides the underlying network and abstracts the writing to and reading from a connection to wireops.Op's. This package also provides types for listening for and accepting Connections, as well as some types for handling connections and proxying connections to another server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection interface { WriteWireMessage(context.Context, wiremessage.WireMessage) error ReadWireMessage(context.Context) (wiremessage.WireMessage, error) Close() error Expired() bool Alive() bool ID() string }
Connection is used to read and write wire protocol messages to a network.