package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
AuthnClientCert creates an option to use TLS client cert authn.
AuthnNone creates an option to not use any client authentication.
AuthnPassword creates an option to use password authentication.
AuthnPasswordAndCert creates an option to use both password and TLS client cert authn.
EncodeExtendedOptions encodes the given options into a string that can be used as a value for the special option "options".
NetTCP creates an option to use the specified host and port over TCP.
NetUnix creates an option to use a unix datagram socket in the specified directory.
New creates a new URL.
Parse parses a URL connection string and extracts its properties.
ParseExtendedOptions is a parser for the value part of the special option "options".
TransportNone creates an option to use a pass-through transport.
TransportTLS creates an option to use a TLS transport.
# Constants
ProtoTCP indicates the URL uses TCP/IP.
ProtoUndefined is used when the type of networking is not known yet.
ProtoUnix indicates the URL uses a unix datagram socket.
Scheme is the URL scheme used in this package.
TLSAllow uses TLS if the server requires it.
TLSPrefer uses TLS if available, but does not require it.
TLSRequire requires TLS but does not validate the server sert.
TLSUnspecified lets the client driver decide the TLS options.
TLSVerifyCA only checks the server cert is signed by the known root CA.
TLSVerifyFull checks the server's name against its certificate.
# Type aliases
AuthnOption is the type of the valid arguments to WithAuthn.
NetOption is the type of the valid arguments to WithNet.
NetProtocol is the type of networking used in a URL.
TLSMode is the type of arguments to TransportTLS options.
TransportOption is the type of the valid arguments to WithTransport.