metrics

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 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