metrics

package
v0.12.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapDB

func WrapDB(trustDB storage.TrustDB, cfg Config) storage.TrustDB

WrapDB wraps the given trust database into one that also exports metrics.

Types

type Config

type Config struct {
	Driver       string
	QueriesTotal metrics.Counter
}

Config configures the metrics for the wrapped trust database.

Jump to

Keyboard shortcuts

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