Documentation ¶
Index ¶
- type MockSignatureRequestHandlerStats
- func (m *MockSignatureRequestHandlerStats) IncSignatureHit()
- func (m *MockSignatureRequestHandlerStats) IncSignatureMiss()
- func (m *MockSignatureRequestHandlerStats) IncSignatureRequest()
- func (m *MockSignatureRequestHandlerStats) Reset()
- func (m *MockSignatureRequestHandlerStats) UpdateSignatureRequestTime(duration time.Duration)
- type SignatureRequestHandlerStats
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 (m *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
Click to show internal directories.
Click to hide internal directories.