Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDatabaseConnection ¶
func IsDatabaseConnection(state tls.ConnectionState) (bool, error)
IsDatabaseConnection inspects the TLS connection state and returns true if it's a database access connection as determined by the decoded identity from the client certificate.
Types ¶
type ContextKey ¶
type ContextKey string
ContextKey is a type used for Go's context value type.
const ContextMySQLServerVersion ContextKey = "ctx-mysql-server-version"
ContextMySQLServerVersion is a key used in MySQL handler to pass MySQL server version.
Click to show internal directories.
Click to hide internal directories.