dbutils

package
v1.2.3-fred.10 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.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