package
20.1.0-beta.2+incompatible
Repository: https://github.com/mgartner/cockroach.git
Documentation: pkg.go.dev

# Packages

Package hba implements an hba.conf parser.
Package pgcode defines the PostgreSQL 5-character support codes used throughout the CockroachDB source tree.
No description provided by the author
Package pgwirebase contains type definitions and very basic protocol structures to be used by both the pgwire package and by others (particularly by the sql package).

# Functions

MakeServer creates a Server.
Match returns true if rd appears to be a Postgres connection.
ParseAndNormalize calls hba.ParseAndNormalize and also ensures the configuration starts with a rule that authenticates the root user with client certificates.
RegisterAuthMethod registers an AuthMethod for pgwire authentication and for use in HBA configuration.

# Constants

ErrDrainingExistingConn is returned when a connection is shut down because the server is draining.
ErrDrainingNewConn is returned when a client attempts to connect to a server which is not accepting client connections.
ErrSSLRequired is returned when a client attempts to connect to a secure server in cleartext.
SocketTCP is used for TCP sockets.
SocketUnix is used for unix datagram sockets.

# Variables

DefaultHBAConfig is used when the stored HBA configuration string is empty or invalid.
Fully-qualified names for metrics.
Fully-qualified names for metrics.
Fully-qualified names for metrics.
Fully-qualified names for metrics.

# Structs

Server implements the server side of the PostgreSQL wire protocol.
ServerMetrics is the set of metrics for the pgwire server.

# Interfaces

AuthConn is the interface used by the authenticator for interacting with the pgwire connection.

# Type aliases

AuthMethod defines a method for authentication of a connection.
CheckHBAEntry defines a method for validating an hba Entry upon configuration of the cluster setting by a SQL client.
PasswordRetrievalFn defines a method to retrieve the hashed password for the user logging in.
SocketType indicates the connection type.