Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ErrDB is used for db related errors. ErrDB = prom.ErrDB // ErrNotClassified is an error that is not further classified. ErrNotClassified = prom.ErrNotClassified // ErrTimeout is a timeout error. ErrProcess = prom.ErrProcess // ErrVerify is used for validation related errors. ErrTimeout = prom.ErrTimeout // ErrProcess is an error during processing e.g. parsing failed. ErrVerify = prom.ErrVerify // OkSuccess is no error. OkSuccess = prom.Success )
Result values
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶
type Fetcher interface { SegRequests(labels RequestLabels) prometheus.Counter RevocationsReceived(labels RevocationLabels) prometheus.Counter UpdateRevocation(stored int, dbErrs int, verifyErrs int) }
Fetcher exposes all metrics for the fetcher.
func NewFetcher ¶
NewFetcher creates fetcher metrics struct.
type RequestLabels ¶
type RequestLabels struct {
Result string
}
RequestLabels contains the labels for the request metrics.
func (RequestLabels) WithResult ¶
func (l RequestLabels) WithResult(result string) RequestLabels
WithResult returns a copy of l with the result changed.
type RevocationLabels ¶
RevocationLabels are the labels for revocation metrics.
func (RevocationLabels) Labels ¶
func (l RevocationLabels) Labels() []string
Labels returns the labels.
func (RevocationLabels) Values ¶
func (l RevocationLabels) Values() []string
Values returns the values.
func (RevocationLabels) WithResult ¶
func (l RevocationLabels) WithResult(result string) RevocationLabels
WithResult returns a copy of l with the result changed.
Click to show internal directories.
Click to hide internal directories.