stats

package
v0.4.11 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: GPL-3.0, LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSignatureRequestHandlerStats

type MockSignatureRequestHandlerStats struct {
	SignatureRequestCount,
	SignatureRequestHit,
	SignatureRequestMiss uint32
	SignatureRequestDuration time.Duration
	// contains filtered or unexported fields
}

MockSignatureRequestHandlerStats is mock for capturing and asserting on handler metrics in test

func (*MockSignatureRequestHandlerStats) IncSignatureHit

func (m *MockSignatureRequestHandlerStats) IncSignatureHit()

func (*MockSignatureRequestHandlerStats) IncSignatureMiss

func (m *MockSignatureRequestHandlerStats) IncSignatureMiss()

func (*MockSignatureRequestHandlerStats) IncSignatureRequest

func (m *MockSignatureRequestHandlerStats) IncSignatureRequest()

func (*MockSignatureRequestHandlerStats) Reset

func (*MockSignatureRequestHandlerStats) UpdateSignatureRequestTime

func (m *MockSignatureRequestHandlerStats) UpdateSignatureRequestTime(duration time.Duration)

type SignatureRequestHandlerStats

type SignatureRequestHandlerStats interface {
	IncSignatureRequest()
	IncSignatureHit()
	IncSignatureMiss()
	UpdateSignatureRequestTime(duration time.Duration)
}

func NewStats

func NewStats(enabled bool) SignatureRequestHandlerStats

Jump to

Keyboard shortcuts

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