Help us shape the future of Go! Take the 2026 Go Developer Survey

database

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstrumentedDatabaseProvider

type InstrumentedDatabaseProvider struct {
	Inner pkgdb.DatabaseProvider
	Mode  string
}

InstrumentedDatabaseProvider wraps a DatabaseProvider with Prometheus metrics.

func (*InstrumentedDatabaseProvider) Provision

Provision performs its designated operation.

func (*InstrumentedDatabaseProvider) Status

Status performs its designated operation.

func (*InstrumentedDatabaseProvider) Teardown

Teardown performs its designated operation.

type NoopDatabaseProvider

type NoopDatabaseProvider struct{}

NoopDatabaseProvider represents the configuration or state for this type.

func (*NoopDatabaseProvider) Provision

Provision performs its designated operation.

func (*NoopDatabaseProvider) Status

Status performs its designated operation.

func (*NoopDatabaseProvider) Teardown

Teardown performs its designated operation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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