dbutils

package
v0.0.0-...-5c79d48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL