connector

package
v0.0.0-...-b203f02 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectDBConn

func InjectDBConn(connector SQLDBConnector) func(http.Handler) http.Handler

Types

type SQLDBConnector

type SQLDBConnector interface {
	GetConnection() (*sql.DB, error)
}

func NewSQLDBConnector

func NewSQLDBConnector(maxOpenConns, maxIdleConns int, dbName string, driver string, sslMode string, sslRootCertFilename *string, dbUser string, dbPass string, finder discovery.Finder, metricsClient metrics.Client) SQLDBConnector

Jump to

Keyboard shortcuts

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