package
0.3.0
Repository: https://github.com/mongodb/mongo-go-driver.git
Documentation: pkg.go.dev

# Functions

ConductSaslConversation handles running a sasl conversation with MongoDB.
CreateAuthenticator creates an authenticator.
Handshaker creates a connection handshaker for the given authenticator.
RegisterAuthenticatorFactory registers the authenticator factory.

# Constants

GSSAPI is the mechanism name for GSSAPI.
MONGODBCR is the mechanism name for MONGODB-CR.
MongoDBX509 is the mechanism name for MongoDBX509.
PLAIN is the mechanism name for PLAIN.
SCRAMSHA1 holds the mechanism name "SCRAM-SHA-1".
SCRAMSHA256 holds the mechanism name "SCRAM-SHA-256".

# Structs

Cred is a user's credential.
DefaultAuthenticator uses SCRAM-SHA-1 or MONGODB-CR depending on the server version.
Error is an error that occurred during authentication.
HandshakeOptions packages options that can be passed to the Handshaker() function.
MongoDBCRAuthenticator uses the MONGODB-CR algorithm to authenticate a connection.
MongoDBX509Authenticator uses X.509 certificates over TLS to authenticate a connection.
PlainAuthenticator uses the PLAIN algorithm over SASL to authenticate a connection.
ScramAuthenticator uses the SCRAM algorithm over SASL to authenticate a connection.

# Interfaces

Authenticator handles authenticating a connection.
SaslClient is the client piece of a sasl conversation.
SaslClientCloser is a SaslClient that has resources to clean up.

# Type aliases

AuthenticatorFactory constructs an authenticator.