Documentation ¶
Overview ¶
Package metrics implements a simple metrics mechanism for gathering, reporting and aggregating metrics
Index ¶
- func Summarize(f io.Reader, loggingfFn LoggingfFn) error
- type IsLoggingFn
- type LoggingfFn
- type Metrics
- type MoqMetrics
- type MoqMetrics_ASTPkgCacheHitsInc_adaptor
- type MoqMetrics_ASTPkgCacheHitsInc_anyParams
- type MoqMetrics_ASTPkgCacheHitsInc_doFn
- type MoqMetrics_ASTPkgCacheHitsInc_doReturnFn
- type MoqMetrics_ASTPkgCacheHitsInc_paramIndexing
- type MoqMetrics_ASTPkgCacheHitsInc_params
- type MoqMetrics_ASTPkgCacheHitsInc_paramsKey
- type MoqMetrics_ASTPkgCacheHitsInc_recorder
- func (r *MoqMetrics_ASTPkgCacheHitsInc_recorder) AndDo(fn MoqMetrics_ASTPkgCacheHitsInc_doFn) *MoqMetrics_ASTPkgCacheHitsInc_recorder
- func (r *MoqMetrics_ASTPkgCacheHitsInc_recorder) Any() *MoqMetrics_ASTPkgCacheHitsInc_anyParams
- func (r *MoqMetrics_ASTPkgCacheHitsInc_recorder) DoReturnResults(fn MoqMetrics_ASTPkgCacheHitsInc_doReturnFn) *MoqMetrics_ASTPkgCacheHitsInc_recorder
- func (r *MoqMetrics_ASTPkgCacheHitsInc_recorder) NoSeq() *MoqMetrics_ASTPkgCacheHitsInc_recorder
- func (r *MoqMetrics_ASTPkgCacheHitsInc_recorder) Repeat(repeaters ...moq.Repeater) *MoqMetrics_ASTPkgCacheHitsInc_recorder
- func (r *MoqMetrics_ASTPkgCacheHitsInc_recorder) ReturnResults() *MoqMetrics_ASTPkgCacheHitsInc_recorder
- func (r *MoqMetrics_ASTPkgCacheHitsInc_recorder) Seq() *MoqMetrics_ASTPkgCacheHitsInc_recorder
- type MoqMetrics_ASTPkgCacheHitsInc_results
- type MoqMetrics_ASTPkgCacheMissesInc_adaptor
- type MoqMetrics_ASTPkgCacheMissesInc_anyParams
- type MoqMetrics_ASTPkgCacheMissesInc_doFn
- type MoqMetrics_ASTPkgCacheMissesInc_doReturnFn
- type MoqMetrics_ASTPkgCacheMissesInc_paramIndexing
- type MoqMetrics_ASTPkgCacheMissesInc_params
- type MoqMetrics_ASTPkgCacheMissesInc_paramsKey
- type MoqMetrics_ASTPkgCacheMissesInc_recorder
- func (r *MoqMetrics_ASTPkgCacheMissesInc_recorder) AndDo(fn MoqMetrics_ASTPkgCacheMissesInc_doFn) *MoqMetrics_ASTPkgCacheMissesInc_recorder
- func (r *MoqMetrics_ASTPkgCacheMissesInc_recorder) Any() *MoqMetrics_ASTPkgCacheMissesInc_anyParams
- func (r *MoqMetrics_ASTPkgCacheMissesInc_recorder) DoReturnResults(fn MoqMetrics_ASTPkgCacheMissesInc_doReturnFn) *MoqMetrics_ASTPkgCacheMissesInc_recorder
- func (r *MoqMetrics_ASTPkgCacheMissesInc_recorder) NoSeq() *MoqMetrics_ASTPkgCacheMissesInc_recorder
- func (r *MoqMetrics_ASTPkgCacheMissesInc_recorder) Repeat(repeaters ...moq.Repeater) *MoqMetrics_ASTPkgCacheMissesInc_recorder
- func (r *MoqMetrics_ASTPkgCacheMissesInc_recorder) ReturnResults() *MoqMetrics_ASTPkgCacheMissesInc_recorder
- func (r *MoqMetrics_ASTPkgCacheMissesInc_recorder) Seq() *MoqMetrics_ASTPkgCacheMissesInc_recorder
- type MoqMetrics_ASTPkgCacheMissesInc_results
- type MoqMetrics_ASTTotalDecorationTimeInc_adaptor
- func (a *MoqMetrics_ASTTotalDecorationTimeInc_adaptor) ParamsKey(params MoqMetrics_ASTTotalDecorationTimeInc_params, anyParams uint64) MoqMetrics_ASTTotalDecorationTimeInc_paramsKey
- func (*MoqMetrics_ASTTotalDecorationTimeInc_adaptor) PrettyParams(params MoqMetrics_ASTTotalDecorationTimeInc_params) string
- type MoqMetrics_ASTTotalDecorationTimeInc_anyParams
- type MoqMetrics_ASTTotalDecorationTimeInc_doFn
- type MoqMetrics_ASTTotalDecorationTimeInc_doReturnFn
- type MoqMetrics_ASTTotalDecorationTimeInc_paramIndexing
- type MoqMetrics_ASTTotalDecorationTimeInc_params
- type MoqMetrics_ASTTotalDecorationTimeInc_paramsKey
- type MoqMetrics_ASTTotalDecorationTimeInc_recorder
- func (r *MoqMetrics_ASTTotalDecorationTimeInc_recorder) AndDo(fn MoqMetrics_ASTTotalDecorationTimeInc_doFn) *MoqMetrics_ASTTotalDecorationTimeInc_recorder
- func (r *MoqMetrics_ASTTotalDecorationTimeInc_recorder) Any() *MoqMetrics_ASTTotalDecorationTimeInc_anyParams
- func (r *MoqMetrics_ASTTotalDecorationTimeInc_recorder) DoReturnResults(fn MoqMetrics_ASTTotalDecorationTimeInc_doReturnFn) *MoqMetrics_ASTTotalDecorationTimeInc_recorder
- func (r *MoqMetrics_ASTTotalDecorationTimeInc_recorder) NoSeq() *MoqMetrics_ASTTotalDecorationTimeInc_recorder
- func (r *MoqMetrics_ASTTotalDecorationTimeInc_recorder) Repeat(repeaters ...moq.Repeater) *MoqMetrics_ASTTotalDecorationTimeInc_recorder
- func (r *MoqMetrics_ASTTotalDecorationTimeInc_recorder) ReturnResults() *MoqMetrics_ASTTotalDecorationTimeInc_recorder
- func (r *MoqMetrics_ASTTotalDecorationTimeInc_recorder) Seq() *MoqMetrics_ASTTotalDecorationTimeInc_recorder
- type MoqMetrics_ASTTotalDecorationTimeInc_results
- type MoqMetrics_ASTTotalLoadTimeInc_adaptor
- type MoqMetrics_ASTTotalLoadTimeInc_anyParams
- type MoqMetrics_ASTTotalLoadTimeInc_doFn
- type MoqMetrics_ASTTotalLoadTimeInc_doReturnFn
- type MoqMetrics_ASTTotalLoadTimeInc_paramIndexing
- type MoqMetrics_ASTTotalLoadTimeInc_params
- type MoqMetrics_ASTTotalLoadTimeInc_paramsKey
- type MoqMetrics_ASTTotalLoadTimeInc_recorder
- func (r *MoqMetrics_ASTTotalLoadTimeInc_recorder) AndDo(fn MoqMetrics_ASTTotalLoadTimeInc_doFn) *MoqMetrics_ASTTotalLoadTimeInc_recorder
- func (r *MoqMetrics_ASTTotalLoadTimeInc_recorder) Any() *MoqMetrics_ASTTotalLoadTimeInc_anyParams
- func (r *MoqMetrics_ASTTotalLoadTimeInc_recorder) DoReturnResults(fn MoqMetrics_ASTTotalLoadTimeInc_doReturnFn) *MoqMetrics_ASTTotalLoadTimeInc_recorder
- func (r *MoqMetrics_ASTTotalLoadTimeInc_recorder) NoSeq() *MoqMetrics_ASTTotalLoadTimeInc_recorder
- func (r *MoqMetrics_ASTTotalLoadTimeInc_recorder) Repeat(repeaters ...moq.Repeater) *MoqMetrics_ASTTotalLoadTimeInc_recorder
- func (r *MoqMetrics_ASTTotalLoadTimeInc_recorder) ReturnResults() *MoqMetrics_ASTTotalLoadTimeInc_recorder
- func (r *MoqMetrics_ASTTotalLoadTimeInc_recorder) Seq() *MoqMetrics_ASTTotalLoadTimeInc_recorder
- type MoqMetrics_ASTTotalLoadTimeInc_results
- type MoqMetrics_Finalize_adaptor
- type MoqMetrics_Finalize_anyParams
- type MoqMetrics_Finalize_doFn
- type MoqMetrics_Finalize_doReturnFn
- type MoqMetrics_Finalize_paramIndexing
- type MoqMetrics_Finalize_params
- type MoqMetrics_Finalize_paramsKey
- type MoqMetrics_Finalize_recorder
- func (r *MoqMetrics_Finalize_recorder) AndDo(fn MoqMetrics_Finalize_doFn) *MoqMetrics_Finalize_recorder
- func (r *MoqMetrics_Finalize_recorder) Any() *MoqMetrics_Finalize_anyParams
- func (r *MoqMetrics_Finalize_recorder) DoReturnResults(fn MoqMetrics_Finalize_doReturnFn) *MoqMetrics_Finalize_recorder
- func (r *MoqMetrics_Finalize_recorder) NoSeq() *MoqMetrics_Finalize_recorder
- func (r *MoqMetrics_Finalize_recorder) Repeat(repeaters ...moq.Repeater) *MoqMetrics_Finalize_recorder
- func (r *MoqMetrics_Finalize_recorder) ReturnResults() *MoqMetrics_Finalize_recorder
- func (r *MoqMetrics_Finalize_recorder) Seq() *MoqMetrics_Finalize_recorder
- type MoqMetrics_Finalize_results
- type MoqMetrics_TotalProcessingTimeInc_adaptor
- type MoqMetrics_TotalProcessingTimeInc_anyParams
- type MoqMetrics_TotalProcessingTimeInc_doFn
- type MoqMetrics_TotalProcessingTimeInc_doReturnFn
- type MoqMetrics_TotalProcessingTimeInc_paramIndexing
- type MoqMetrics_TotalProcessingTimeInc_params
- type MoqMetrics_TotalProcessingTimeInc_paramsKey
- type MoqMetrics_TotalProcessingTimeInc_recorder
- func (r *MoqMetrics_TotalProcessingTimeInc_recorder) AndDo(fn MoqMetrics_TotalProcessingTimeInc_doFn) *MoqMetrics_TotalProcessingTimeInc_recorder
- func (r *MoqMetrics_TotalProcessingTimeInc_recorder) Any() *MoqMetrics_TotalProcessingTimeInc_anyParams
- func (r *MoqMetrics_TotalProcessingTimeInc_recorder) DoReturnResults(fn MoqMetrics_TotalProcessingTimeInc_doReturnFn) *MoqMetrics_TotalProcessingTimeInc_recorder
- func (r *MoqMetrics_TotalProcessingTimeInc_recorder) NoSeq() *MoqMetrics_TotalProcessingTimeInc_recorder
- func (r *MoqMetrics_TotalProcessingTimeInc_recorder) Repeat(repeaters ...moq.Repeater) *MoqMetrics_TotalProcessingTimeInc_recorder
- func (r *MoqMetrics_TotalProcessingTimeInc_recorder) ReturnResults() *MoqMetrics_TotalProcessingTimeInc_recorder
- func (r *MoqMetrics_TotalProcessingTimeInc_recorder) Seq() *MoqMetrics_TotalProcessingTimeInc_recorder
- type MoqMetrics_TotalProcessingTimeInc_results
- type MoqMetrics_mock
- func (m *MoqMetrics_mock) ASTPkgCacheHitsInc()
- func (m *MoqMetrics_mock) ASTPkgCacheMissesInc()
- func (m *MoqMetrics_mock) ASTTotalDecorationTimeInc(d time.Duration)
- func (m *MoqMetrics_mock) ASTTotalLoadTimeInc(d time.Duration)
- func (m *MoqMetrics_mock) Finalize()
- func (m *MoqMetrics_mock) TotalProcessingTimeInc(d time.Duration)
- type MoqMetrics_recorder
- func (m *MoqMetrics_recorder) ASTPkgCacheHitsInc() *MoqMetrics_ASTPkgCacheHitsInc_recorder
- func (m *MoqMetrics_recorder) ASTPkgCacheMissesInc() *MoqMetrics_ASTPkgCacheMissesInc_recorder
- func (m *MoqMetrics_recorder) ASTTotalDecorationTimeInc(d time.Duration) *MoqMetrics_ASTTotalDecorationTimeInc_recorder
- func (m *MoqMetrics_recorder) ASTTotalLoadTimeInc(d time.Duration) *MoqMetrics_ASTTotalLoadTimeInc_recorder
- func (m *MoqMetrics_recorder) Finalize() *MoqMetrics_Finalize_recorder
- func (m *MoqMetrics_recorder) TotalProcessingTimeInc(d time.Duration) *MoqMetrics_TotalProcessingTimeInc_recorder
- type MoqMetrics_runtime
- type Processor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IsLoggingFn ¶
type IsLoggingFn func() bool
IsLoggingFn is the function that determines if logging is on
type LoggingfFn ¶
type LoggingfFn func(format string, args ...interface{})
LoggingfFn is the logging function to output finalized metrics
type Metrics ¶
type Metrics interface { ASTPkgCacheHitsInc() ASTPkgCacheMissesInc() ASTTotalLoadTimeInc(d time.Duration) ASTTotalDecorationTimeInc(d time.Duration) TotalProcessingTimeInc(d time.Duration) Finalize() }
Metrics is the interface to the metrics system
type MoqMetrics ¶
type MoqMetrics struct { Moq *MoqMetrics_mock Moq_ASTPkgCacheHitsInc *impl.Moq[ *MoqMetrics_ASTPkgCacheHitsInc_adaptor, MoqMetrics_ASTPkgCacheHitsInc_params, MoqMetrics_ASTPkgCacheHitsInc_paramsKey, MoqMetrics_ASTPkgCacheHitsInc_results, ] Moq_ASTPkgCacheMissesInc *impl.Moq[ *MoqMetrics_ASTPkgCacheMissesInc_adaptor, MoqMetrics_ASTPkgCacheMissesInc_params, MoqMetrics_ASTPkgCacheMissesInc_paramsKey, MoqMetrics_ASTPkgCacheMissesInc_results, ] Moq_ASTTotalLoadTimeInc *impl.Moq[ *MoqMetrics_ASTTotalLoadTimeInc_adaptor, MoqMetrics_ASTTotalLoadTimeInc_params, MoqMetrics_ASTTotalLoadTimeInc_paramsKey, MoqMetrics_ASTTotalLoadTimeInc_results, ] Moq_ASTTotalDecorationTimeInc *impl.Moq[ *MoqMetrics_ASTTotalDecorationTimeInc_adaptor, MoqMetrics_ASTTotalDecorationTimeInc_params, MoqMetrics_ASTTotalDecorationTimeInc_paramsKey, MoqMetrics_ASTTotalDecorationTimeInc_results, ] Moq_TotalProcessingTimeInc *impl.Moq[ *MoqMetrics_TotalProcessingTimeInc_adaptor, MoqMetrics_TotalProcessingTimeInc_params, MoqMetrics_TotalProcessingTimeInc_paramsKey, MoqMetrics_TotalProcessingTimeInc_results, ] Moq_Finalize *impl.Moq[ *MoqMetrics_Finalize_adaptor, MoqMetrics_Finalize_params, MoqMetrics_Finalize_paramsKey, MoqMetrics_Finalize_results, ] Runtime MoqMetrics_runtime }
MoqMetrics holds the state of a moq of the Metrics type
func NewMoqMetrics ¶
func NewMoqMetrics(scene *moq.Scene, config *moq.Config) *MoqMetrics
NewMoqMetrics creates a new moq of the Metrics type
func (*MoqMetrics) AssertExpectationsMet ¶
func (m *MoqMetrics) AssertExpectationsMet()
AssertExpectationsMet asserts that all expectations have been met
func (*MoqMetrics) Mock ¶
func (m *MoqMetrics) Mock() *MoqMetrics_mock
Mock returns the mock implementation of the Metrics type
func (*MoqMetrics) OnCall ¶
func (m *MoqMetrics) OnCall() *MoqMetrics_recorder
OnCall returns the recorder implementation of the Metrics type
type MoqMetrics_ASTPkgCacheHitsInc_adaptor ¶ added in v0.28.0
type MoqMetrics_ASTPkgCacheHitsInc_adaptor struct {
Moq *MoqMetrics
}
MoqMetrics_ASTPkgCacheHitsInc_adaptor adapts MoqMetrics as needed by the runtime
func (*MoqMetrics_ASTPkgCacheHitsInc_adaptor) ParamsKey ¶ added in v0.28.0
func (a *MoqMetrics_ASTPkgCacheHitsInc_adaptor) ParamsKey(params MoqMetrics_ASTPkgCacheHitsInc_params, anyParams uint64) MoqMetrics_ASTPkgCacheHitsInc_paramsKey
func (*MoqMetrics_ASTPkgCacheHitsInc_adaptor) PrettyParams ¶ added in v0.28.0
func (*MoqMetrics_ASTPkgCacheHitsInc_adaptor) PrettyParams(params MoqMetrics_ASTPkgCacheHitsInc_params) string
type MoqMetrics_ASTPkgCacheHitsInc_anyParams ¶
type MoqMetrics_ASTPkgCacheHitsInc_anyParams struct {
Recorder *MoqMetrics_ASTPkgCacheHitsInc_recorder
}
MoqMetrics_ASTPkgCacheHitsInc_anyParams isolates the any params functions of the Metrics type
type MoqMetrics_ASTPkgCacheHitsInc_doFn ¶
type MoqMetrics_ASTPkgCacheHitsInc_doFn func()
MoqMetrics_ASTPkgCacheHitsInc_doFn defines the type of function needed when calling AndDo for the Metrics type
type MoqMetrics_ASTPkgCacheHitsInc_doReturnFn ¶
type MoqMetrics_ASTPkgCacheHitsInc_doReturnFn func()
MoqMetrics_ASTPkgCacheHitsInc_doReturnFn defines the type of function needed when calling DoReturnResults for the Metrics type
type MoqMetrics_ASTPkgCacheHitsInc_paramIndexing ¶ added in v0.28.0
type MoqMetrics_ASTPkgCacheHitsInc_paramIndexing struct{}
MoqMetrics_ASTPkgCacheHitsInc_paramIndexing holds the parameter indexing runtime configuration for the Metrics type
type MoqMetrics_ASTPkgCacheHitsInc_params ¶
type MoqMetrics_ASTPkgCacheHitsInc_params struct{}
MoqMetrics_ASTPkgCacheHitsInc_params holds the params of the Metrics type
type MoqMetrics_ASTPkgCacheHitsInc_paramsKey ¶
type MoqMetrics_ASTPkgCacheHitsInc_paramsKey struct { Params struct{} Hashes struct{} }
MoqMetrics_ASTPkgCacheHitsInc_paramsKey holds the map key params of the Metrics type
type MoqMetrics_ASTPkgCacheHitsInc_recorder ¶ added in v0.28.0
type MoqMetrics_ASTPkgCacheHitsInc_recorder struct { Recorder *impl.Recorder[ *MoqMetrics_ASTPkgCacheHitsInc_adaptor, MoqMetrics_ASTPkgCacheHitsInc_params, MoqMetrics_ASTPkgCacheHitsInc_paramsKey, MoqMetrics_ASTPkgCacheHitsInc_results, ] }
MoqMetrics_ASTPkgCacheHitsInc_recorder routes recorded function calls to the MoqMetrics moq
func (*MoqMetrics_ASTPkgCacheHitsInc_recorder) DoReturnResults ¶ added in v0.28.0
func (r *MoqMetrics_ASTPkgCacheHitsInc_recorder) DoReturnResults(fn MoqMetrics_ASTPkgCacheHitsInc_doReturnFn) *MoqMetrics_ASTPkgCacheHitsInc_recorder
func (*MoqMetrics_ASTPkgCacheHitsInc_recorder) NoSeq ¶ added in v0.28.0
func (r *MoqMetrics_ASTPkgCacheHitsInc_recorder) NoSeq() *MoqMetrics_ASTPkgCacheHitsInc_recorder
func (*MoqMetrics_ASTPkgCacheHitsInc_recorder) Repeat ¶ added in v0.28.0
func (r *MoqMetrics_ASTPkgCacheHitsInc_recorder) Repeat(repeaters ...moq.Repeater) *MoqMetrics_ASTPkgCacheHitsInc_recorder
func (*MoqMetrics_ASTPkgCacheHitsInc_recorder) ReturnResults ¶ added in v0.28.0
func (r *MoqMetrics_ASTPkgCacheHitsInc_recorder) ReturnResults() *MoqMetrics_ASTPkgCacheHitsInc_recorder
type MoqMetrics_ASTPkgCacheHitsInc_results ¶
type MoqMetrics_ASTPkgCacheHitsInc_results struct{}
MoqMetrics_ASTPkgCacheHitsInc_results holds the results of the Metrics type
type MoqMetrics_ASTPkgCacheMissesInc_adaptor ¶ added in v0.28.0
type MoqMetrics_ASTPkgCacheMissesInc_adaptor struct {
Moq *MoqMetrics
}
MoqMetrics_ASTPkgCacheMissesInc_adaptor adapts MoqMetrics as needed by the runtime
func (*MoqMetrics_ASTPkgCacheMissesInc_adaptor) ParamsKey ¶ added in v0.28.0
func (a *MoqMetrics_ASTPkgCacheMissesInc_adaptor) ParamsKey(params MoqMetrics_ASTPkgCacheMissesInc_params, anyParams uint64) MoqMetrics_ASTPkgCacheMissesInc_paramsKey
func (*MoqMetrics_ASTPkgCacheMissesInc_adaptor) PrettyParams ¶ added in v0.28.0
func (*MoqMetrics_ASTPkgCacheMissesInc_adaptor) PrettyParams(params MoqMetrics_ASTPkgCacheMissesInc_params) string
type MoqMetrics_ASTPkgCacheMissesInc_anyParams ¶
type MoqMetrics_ASTPkgCacheMissesInc_anyParams struct {
Recorder *MoqMetrics_ASTPkgCacheMissesInc_recorder
}
MoqMetrics_ASTPkgCacheMissesInc_anyParams isolates the any params functions of the Metrics type
type MoqMetrics_ASTPkgCacheMissesInc_doFn ¶
type MoqMetrics_ASTPkgCacheMissesInc_doFn func()
MoqMetrics_ASTPkgCacheMissesInc_doFn defines the type of function needed when calling AndDo for the Metrics type
type MoqMetrics_ASTPkgCacheMissesInc_doReturnFn ¶
type MoqMetrics_ASTPkgCacheMissesInc_doReturnFn func()
MoqMetrics_ASTPkgCacheMissesInc_doReturnFn defines the type of function needed when calling DoReturnResults for the Metrics type
type MoqMetrics_ASTPkgCacheMissesInc_paramIndexing ¶ added in v0.28.0
type MoqMetrics_ASTPkgCacheMissesInc_paramIndexing struct{}
MoqMetrics_ASTPkgCacheMissesInc_paramIndexing holds the parameter indexing runtime configuration for the Metrics type
type MoqMetrics_ASTPkgCacheMissesInc_params ¶
type MoqMetrics_ASTPkgCacheMissesInc_params struct{}
MoqMetrics_ASTPkgCacheMissesInc_params holds the params of the Metrics type
type MoqMetrics_ASTPkgCacheMissesInc_paramsKey ¶
type MoqMetrics_ASTPkgCacheMissesInc_paramsKey struct { Params struct{} Hashes struct{} }
MoqMetrics_ASTPkgCacheMissesInc_paramsKey holds the map key params of the Metrics type
type MoqMetrics_ASTPkgCacheMissesInc_recorder ¶ added in v0.28.0
type MoqMetrics_ASTPkgCacheMissesInc_recorder struct { Recorder *impl.Recorder[ *MoqMetrics_ASTPkgCacheMissesInc_adaptor, MoqMetrics_ASTPkgCacheMissesInc_params, MoqMetrics_ASTPkgCacheMissesInc_paramsKey, MoqMetrics_ASTPkgCacheMissesInc_results, ] }
MoqMetrics_ASTPkgCacheMissesInc_recorder routes recorded function calls to the MoqMetrics moq
func (*MoqMetrics_ASTPkgCacheMissesInc_recorder) DoReturnResults ¶ added in v0.28.0
func (r *MoqMetrics_ASTPkgCacheMissesInc_recorder) DoReturnResults(fn MoqMetrics_ASTPkgCacheMissesInc_doReturnFn) *MoqMetrics_ASTPkgCacheMissesInc_recorder
func (*MoqMetrics_ASTPkgCacheMissesInc_recorder) NoSeq ¶ added in v0.28.0
func (r *MoqMetrics_ASTPkgCacheMissesInc_recorder) NoSeq() *MoqMetrics_ASTPkgCacheMissesInc_recorder
func (*MoqMetrics_ASTPkgCacheMissesInc_recorder) Repeat ¶ added in v0.28.0
func (r *MoqMetrics_ASTPkgCacheMissesInc_recorder) Repeat(repeaters ...moq.Repeater) *MoqMetrics_ASTPkgCacheMissesInc_recorder
func (*MoqMetrics_ASTPkgCacheMissesInc_recorder) ReturnResults ¶ added in v0.28.0
func (r *MoqMetrics_ASTPkgCacheMissesInc_recorder) ReturnResults() *MoqMetrics_ASTPkgCacheMissesInc_recorder
type MoqMetrics_ASTPkgCacheMissesInc_results ¶
type MoqMetrics_ASTPkgCacheMissesInc_results struct{}
MoqMetrics_ASTPkgCacheMissesInc_results holds the results of the Metrics type
type MoqMetrics_ASTTotalDecorationTimeInc_adaptor ¶ added in v0.28.0
type MoqMetrics_ASTTotalDecorationTimeInc_adaptor struct {
Moq *MoqMetrics
}
MoqMetrics_ASTTotalDecorationTimeInc_adaptor adapts MoqMetrics as needed by the runtime
func (*MoqMetrics_ASTTotalDecorationTimeInc_adaptor) ParamsKey ¶ added in v0.28.0
func (a *MoqMetrics_ASTTotalDecorationTimeInc_adaptor) ParamsKey(params MoqMetrics_ASTTotalDecorationTimeInc_params, anyParams uint64) MoqMetrics_ASTTotalDecorationTimeInc_paramsKey
func (*MoqMetrics_ASTTotalDecorationTimeInc_adaptor) PrettyParams ¶ added in v0.28.0
func (*MoqMetrics_ASTTotalDecorationTimeInc_adaptor) PrettyParams(params MoqMetrics_ASTTotalDecorationTimeInc_params) string
type MoqMetrics_ASTTotalDecorationTimeInc_anyParams ¶
type MoqMetrics_ASTTotalDecorationTimeInc_anyParams struct {
Recorder *MoqMetrics_ASTTotalDecorationTimeInc_recorder
}
MoqMetrics_ASTTotalDecorationTimeInc_anyParams isolates the any params functions of the Metrics type
type MoqMetrics_ASTTotalDecorationTimeInc_doFn ¶
MoqMetrics_ASTTotalDecorationTimeInc_doFn defines the type of function needed when calling AndDo for the Metrics type
type MoqMetrics_ASTTotalDecorationTimeInc_doReturnFn ¶
MoqMetrics_ASTTotalDecorationTimeInc_doReturnFn defines the type of function needed when calling DoReturnResults for the Metrics type
type MoqMetrics_ASTTotalDecorationTimeInc_paramIndexing ¶ added in v0.28.0
type MoqMetrics_ASTTotalDecorationTimeInc_paramIndexing struct {
D moq.ParamIndexing
}
MoqMetrics_ASTTotalDecorationTimeInc_paramIndexing holds the parameter indexing runtime configuration for the Metrics type
type MoqMetrics_ASTTotalDecorationTimeInc_params ¶
MoqMetrics_ASTTotalDecorationTimeInc_params holds the params of the Metrics type
type MoqMetrics_ASTTotalDecorationTimeInc_paramsKey ¶
type MoqMetrics_ASTTotalDecorationTimeInc_paramsKey struct { Params struct{ D time.Duration } Hashes struct{ D hash.Hash } }
MoqMetrics_ASTTotalDecorationTimeInc_paramsKey holds the map key params of the Metrics type
type MoqMetrics_ASTTotalDecorationTimeInc_recorder ¶ added in v0.28.0
type MoqMetrics_ASTTotalDecorationTimeInc_recorder struct { Recorder *impl.Recorder[ *MoqMetrics_ASTTotalDecorationTimeInc_adaptor, MoqMetrics_ASTTotalDecorationTimeInc_params, MoqMetrics_ASTTotalDecorationTimeInc_paramsKey, MoqMetrics_ASTTotalDecorationTimeInc_results, ] }
MoqMetrics_ASTTotalDecorationTimeInc_recorder routes recorded function calls to the MoqMetrics moq
func (*MoqMetrics_ASTTotalDecorationTimeInc_recorder) DoReturnResults ¶ added in v0.28.0
func (*MoqMetrics_ASTTotalDecorationTimeInc_recorder) Repeat ¶ added in v0.28.0
func (r *MoqMetrics_ASTTotalDecorationTimeInc_recorder) Repeat(repeaters ...moq.Repeater) *MoqMetrics_ASTTotalDecorationTimeInc_recorder
func (*MoqMetrics_ASTTotalDecorationTimeInc_recorder) ReturnResults ¶ added in v0.28.0
func (r *MoqMetrics_ASTTotalDecorationTimeInc_recorder) ReturnResults() *MoqMetrics_ASTTotalDecorationTimeInc_recorder
type MoqMetrics_ASTTotalDecorationTimeInc_results ¶
type MoqMetrics_ASTTotalDecorationTimeInc_results struct{}
MoqMetrics_ASTTotalDecorationTimeInc_results holds the results of the Metrics type
type MoqMetrics_ASTTotalLoadTimeInc_adaptor ¶ added in v0.28.0
type MoqMetrics_ASTTotalLoadTimeInc_adaptor struct {
Moq *MoqMetrics
}
MoqMetrics_ASTTotalLoadTimeInc_adaptor adapts MoqMetrics as needed by the runtime
func (*MoqMetrics_ASTTotalLoadTimeInc_adaptor) ParamsKey ¶ added in v0.28.0
func (a *MoqMetrics_ASTTotalLoadTimeInc_adaptor) ParamsKey(params MoqMetrics_ASTTotalLoadTimeInc_params, anyParams uint64) MoqMetrics_ASTTotalLoadTimeInc_paramsKey
func (*MoqMetrics_ASTTotalLoadTimeInc_adaptor) PrettyParams ¶ added in v0.28.0
func (*MoqMetrics_ASTTotalLoadTimeInc_adaptor) PrettyParams(params MoqMetrics_ASTTotalLoadTimeInc_params) string
type MoqMetrics_ASTTotalLoadTimeInc_anyParams ¶
type MoqMetrics_ASTTotalLoadTimeInc_anyParams struct {
Recorder *MoqMetrics_ASTTotalLoadTimeInc_recorder
}
MoqMetrics_ASTTotalLoadTimeInc_anyParams isolates the any params functions of the Metrics type
type MoqMetrics_ASTTotalLoadTimeInc_doFn ¶
MoqMetrics_ASTTotalLoadTimeInc_doFn defines the type of function needed when calling AndDo for the Metrics type
type MoqMetrics_ASTTotalLoadTimeInc_doReturnFn ¶
MoqMetrics_ASTTotalLoadTimeInc_doReturnFn defines the type of function needed when calling DoReturnResults for the Metrics type
type MoqMetrics_ASTTotalLoadTimeInc_paramIndexing ¶ added in v0.28.0
type MoqMetrics_ASTTotalLoadTimeInc_paramIndexing struct {
D moq.ParamIndexing
}
MoqMetrics_ASTTotalLoadTimeInc_paramIndexing holds the parameter indexing runtime configuration for the Metrics type
type MoqMetrics_ASTTotalLoadTimeInc_params ¶
MoqMetrics_ASTTotalLoadTimeInc_params holds the params of the Metrics type
type MoqMetrics_ASTTotalLoadTimeInc_paramsKey ¶
type MoqMetrics_ASTTotalLoadTimeInc_paramsKey struct { Params struct{ D time.Duration } Hashes struct{ D hash.Hash } }
MoqMetrics_ASTTotalLoadTimeInc_paramsKey holds the map key params of the Metrics type
type MoqMetrics_ASTTotalLoadTimeInc_recorder ¶ added in v0.28.0
type MoqMetrics_ASTTotalLoadTimeInc_recorder struct { Recorder *impl.Recorder[ *MoqMetrics_ASTTotalLoadTimeInc_adaptor, MoqMetrics_ASTTotalLoadTimeInc_params, MoqMetrics_ASTTotalLoadTimeInc_paramsKey, MoqMetrics_ASTTotalLoadTimeInc_results, ] }
MoqMetrics_ASTTotalLoadTimeInc_recorder routes recorded function calls to the MoqMetrics moq
func (*MoqMetrics_ASTTotalLoadTimeInc_recorder) DoReturnResults ¶ added in v0.28.0
func (r *MoqMetrics_ASTTotalLoadTimeInc_recorder) DoReturnResults(fn MoqMetrics_ASTTotalLoadTimeInc_doReturnFn) *MoqMetrics_ASTTotalLoadTimeInc_recorder
func (*MoqMetrics_ASTTotalLoadTimeInc_recorder) NoSeq ¶ added in v0.28.0
func (r *MoqMetrics_ASTTotalLoadTimeInc_recorder) NoSeq() *MoqMetrics_ASTTotalLoadTimeInc_recorder
func (*MoqMetrics_ASTTotalLoadTimeInc_recorder) Repeat ¶ added in v0.28.0
func (r *MoqMetrics_ASTTotalLoadTimeInc_recorder) Repeat(repeaters ...moq.Repeater) *MoqMetrics_ASTTotalLoadTimeInc_recorder
func (*MoqMetrics_ASTTotalLoadTimeInc_recorder) ReturnResults ¶ added in v0.28.0
func (r *MoqMetrics_ASTTotalLoadTimeInc_recorder) ReturnResults() *MoqMetrics_ASTTotalLoadTimeInc_recorder
type MoqMetrics_ASTTotalLoadTimeInc_results ¶
type MoqMetrics_ASTTotalLoadTimeInc_results struct{}
MoqMetrics_ASTTotalLoadTimeInc_results holds the results of the Metrics type
type MoqMetrics_Finalize_adaptor ¶ added in v0.28.0
type MoqMetrics_Finalize_adaptor struct {
Moq *MoqMetrics
}
MoqMetrics_Finalize_adaptor adapts MoqMetrics as needed by the runtime
func (*MoqMetrics_Finalize_adaptor) ParamsKey ¶ added in v0.28.0
func (a *MoqMetrics_Finalize_adaptor) ParamsKey(params MoqMetrics_Finalize_params, anyParams uint64) MoqMetrics_Finalize_paramsKey
func (*MoqMetrics_Finalize_adaptor) PrettyParams ¶ added in v0.28.0
func (*MoqMetrics_Finalize_adaptor) PrettyParams(params MoqMetrics_Finalize_params) string
type MoqMetrics_Finalize_anyParams ¶
type MoqMetrics_Finalize_anyParams struct {
Recorder *MoqMetrics_Finalize_recorder
}
MoqMetrics_Finalize_anyParams isolates the any params functions of the Metrics type
type MoqMetrics_Finalize_doFn ¶
type MoqMetrics_Finalize_doFn func()
MoqMetrics_Finalize_doFn defines the type of function needed when calling AndDo for the Metrics type
type MoqMetrics_Finalize_doReturnFn ¶
type MoqMetrics_Finalize_doReturnFn func()
MoqMetrics_Finalize_doReturnFn defines the type of function needed when calling DoReturnResults for the Metrics type
type MoqMetrics_Finalize_paramIndexing ¶ added in v0.28.0
type MoqMetrics_Finalize_paramIndexing struct{}
MoqMetrics_Finalize_paramIndexing holds the parameter indexing runtime configuration for the Metrics type
type MoqMetrics_Finalize_params ¶
type MoqMetrics_Finalize_params struct{}
MoqMetrics_Finalize_params holds the params of the Metrics type
type MoqMetrics_Finalize_paramsKey ¶
type MoqMetrics_Finalize_paramsKey struct { Params struct{} Hashes struct{} }
MoqMetrics_Finalize_paramsKey holds the map key params of the Metrics type
type MoqMetrics_Finalize_recorder ¶ added in v0.28.0
type MoqMetrics_Finalize_recorder struct { Recorder *impl.Recorder[ *MoqMetrics_Finalize_adaptor, MoqMetrics_Finalize_params, MoqMetrics_Finalize_paramsKey, MoqMetrics_Finalize_results, ] }
MoqMetrics_Finalize_recorder routes recorded function calls to the MoqMetrics moq
func (*MoqMetrics_Finalize_recorder) AndDo ¶ added in v0.28.0
func (r *MoqMetrics_Finalize_recorder) AndDo(fn MoqMetrics_Finalize_doFn) *MoqMetrics_Finalize_recorder
func (*MoqMetrics_Finalize_recorder) Any ¶ added in v0.28.0
func (r *MoqMetrics_Finalize_recorder) Any() *MoqMetrics_Finalize_anyParams
func (*MoqMetrics_Finalize_recorder) DoReturnResults ¶ added in v0.28.0
func (r *MoqMetrics_Finalize_recorder) DoReturnResults(fn MoqMetrics_Finalize_doReturnFn) *MoqMetrics_Finalize_recorder
func (*MoqMetrics_Finalize_recorder) NoSeq ¶ added in v0.28.0
func (r *MoqMetrics_Finalize_recorder) NoSeq() *MoqMetrics_Finalize_recorder
func (*MoqMetrics_Finalize_recorder) Repeat ¶ added in v0.28.0
func (r *MoqMetrics_Finalize_recorder) Repeat(repeaters ...moq.Repeater) *MoqMetrics_Finalize_recorder
func (*MoqMetrics_Finalize_recorder) ReturnResults ¶ added in v0.28.0
func (r *MoqMetrics_Finalize_recorder) ReturnResults() *MoqMetrics_Finalize_recorder
func (*MoqMetrics_Finalize_recorder) Seq ¶ added in v0.28.0
func (r *MoqMetrics_Finalize_recorder) Seq() *MoqMetrics_Finalize_recorder
type MoqMetrics_Finalize_results ¶
type MoqMetrics_Finalize_results struct{}
MoqMetrics_Finalize_results holds the results of the Metrics type
type MoqMetrics_TotalProcessingTimeInc_adaptor ¶ added in v0.28.0
type MoqMetrics_TotalProcessingTimeInc_adaptor struct {
Moq *MoqMetrics
}
MoqMetrics_TotalProcessingTimeInc_adaptor adapts MoqMetrics as needed by the runtime
func (*MoqMetrics_TotalProcessingTimeInc_adaptor) ParamsKey ¶ added in v0.28.0
func (a *MoqMetrics_TotalProcessingTimeInc_adaptor) ParamsKey(params MoqMetrics_TotalProcessingTimeInc_params, anyParams uint64) MoqMetrics_TotalProcessingTimeInc_paramsKey
func (*MoqMetrics_TotalProcessingTimeInc_adaptor) PrettyParams ¶ added in v0.28.0
func (*MoqMetrics_TotalProcessingTimeInc_adaptor) PrettyParams(params MoqMetrics_TotalProcessingTimeInc_params) string
type MoqMetrics_TotalProcessingTimeInc_anyParams ¶
type MoqMetrics_TotalProcessingTimeInc_anyParams struct {
Recorder *MoqMetrics_TotalProcessingTimeInc_recorder
}
MoqMetrics_TotalProcessingTimeInc_anyParams isolates the any params functions of the Metrics type
type MoqMetrics_TotalProcessingTimeInc_doFn ¶
MoqMetrics_TotalProcessingTimeInc_doFn defines the type of function needed when calling AndDo for the Metrics type
type MoqMetrics_TotalProcessingTimeInc_doReturnFn ¶
MoqMetrics_TotalProcessingTimeInc_doReturnFn defines the type of function needed when calling DoReturnResults for the Metrics type
type MoqMetrics_TotalProcessingTimeInc_paramIndexing ¶ added in v0.28.0
type MoqMetrics_TotalProcessingTimeInc_paramIndexing struct {
D moq.ParamIndexing
}
MoqMetrics_TotalProcessingTimeInc_paramIndexing holds the parameter indexing runtime configuration for the Metrics type
type MoqMetrics_TotalProcessingTimeInc_params ¶
MoqMetrics_TotalProcessingTimeInc_params holds the params of the Metrics type
type MoqMetrics_TotalProcessingTimeInc_paramsKey ¶
type MoqMetrics_TotalProcessingTimeInc_paramsKey struct { Params struct{ D time.Duration } Hashes struct{ D hash.Hash } }
MoqMetrics_TotalProcessingTimeInc_paramsKey holds the map key params of the Metrics type
type MoqMetrics_TotalProcessingTimeInc_recorder ¶ added in v0.28.0
type MoqMetrics_TotalProcessingTimeInc_recorder struct { Recorder *impl.Recorder[ *MoqMetrics_TotalProcessingTimeInc_adaptor, MoqMetrics_TotalProcessingTimeInc_params, MoqMetrics_TotalProcessingTimeInc_paramsKey, MoqMetrics_TotalProcessingTimeInc_results, ] }
MoqMetrics_TotalProcessingTimeInc_recorder routes recorded function calls to the MoqMetrics moq
func (*MoqMetrics_TotalProcessingTimeInc_recorder) DoReturnResults ¶ added in v0.28.0
func (r *MoqMetrics_TotalProcessingTimeInc_recorder) DoReturnResults(fn MoqMetrics_TotalProcessingTimeInc_doReturnFn) *MoqMetrics_TotalProcessingTimeInc_recorder
func (*MoqMetrics_TotalProcessingTimeInc_recorder) Repeat ¶ added in v0.28.0
func (r *MoqMetrics_TotalProcessingTimeInc_recorder) Repeat(repeaters ...moq.Repeater) *MoqMetrics_TotalProcessingTimeInc_recorder
func (*MoqMetrics_TotalProcessingTimeInc_recorder) ReturnResults ¶ added in v0.28.0
func (r *MoqMetrics_TotalProcessingTimeInc_recorder) ReturnResults() *MoqMetrics_TotalProcessingTimeInc_recorder
type MoqMetrics_TotalProcessingTimeInc_results ¶
type MoqMetrics_TotalProcessingTimeInc_results struct{}
MoqMetrics_TotalProcessingTimeInc_results holds the results of the Metrics type
type MoqMetrics_mock ¶
type MoqMetrics_mock struct {
Moq *MoqMetrics
}
MoqMetrics_mock isolates the mock interface of the Metrics type
func (*MoqMetrics_mock) ASTPkgCacheHitsInc ¶
func (m *MoqMetrics_mock) ASTPkgCacheHitsInc()
func (*MoqMetrics_mock) ASTPkgCacheMissesInc ¶
func (m *MoqMetrics_mock) ASTPkgCacheMissesInc()
func (*MoqMetrics_mock) ASTTotalDecorationTimeInc ¶
func (m *MoqMetrics_mock) ASTTotalDecorationTimeInc(d time.Duration)
func (*MoqMetrics_mock) ASTTotalLoadTimeInc ¶
func (m *MoqMetrics_mock) ASTTotalLoadTimeInc(d time.Duration)
func (*MoqMetrics_mock) Finalize ¶
func (m *MoqMetrics_mock) Finalize()
func (*MoqMetrics_mock) TotalProcessingTimeInc ¶
func (m *MoqMetrics_mock) TotalProcessingTimeInc(d time.Duration)
type MoqMetrics_recorder ¶
type MoqMetrics_recorder struct {
Moq *MoqMetrics
}
MoqMetrics_recorder isolates the recorder interface of the Metrics type
func (*MoqMetrics_recorder) ASTPkgCacheHitsInc ¶
func (m *MoqMetrics_recorder) ASTPkgCacheHitsInc() *MoqMetrics_ASTPkgCacheHitsInc_recorder
func (*MoqMetrics_recorder) ASTPkgCacheMissesInc ¶
func (m *MoqMetrics_recorder) ASTPkgCacheMissesInc() *MoqMetrics_ASTPkgCacheMissesInc_recorder
func (*MoqMetrics_recorder) ASTTotalDecorationTimeInc ¶
func (m *MoqMetrics_recorder) ASTTotalDecorationTimeInc(d time.Duration) *MoqMetrics_ASTTotalDecorationTimeInc_recorder
func (*MoqMetrics_recorder) ASTTotalLoadTimeInc ¶
func (m *MoqMetrics_recorder) ASTTotalLoadTimeInc(d time.Duration) *MoqMetrics_ASTTotalLoadTimeInc_recorder
func (*MoqMetrics_recorder) Finalize ¶
func (m *MoqMetrics_recorder) Finalize() *MoqMetrics_Finalize_recorder
func (*MoqMetrics_recorder) TotalProcessingTimeInc ¶
func (m *MoqMetrics_recorder) TotalProcessingTimeInc(d time.Duration) *MoqMetrics_TotalProcessingTimeInc_recorder
type MoqMetrics_runtime ¶ added in v0.28.0
type MoqMetrics_runtime struct { ParameterIndexing struct { ASTPkgCacheHitsInc MoqMetrics_ASTPkgCacheHitsInc_paramIndexing ASTPkgCacheMissesInc MoqMetrics_ASTPkgCacheMissesInc_paramIndexing ASTTotalLoadTimeInc MoqMetrics_ASTTotalLoadTimeInc_paramIndexing ASTTotalDecorationTimeInc MoqMetrics_ASTTotalDecorationTimeInc_paramIndexing TotalProcessingTimeInc MoqMetrics_TotalProcessingTimeInc_paramIndexing Finalize MoqMetrics_Finalize_paramIndexing } }
MoqMetrics_runtime holds runtime configuration for the Metrics type
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
Processor maintains the state of the metrics system
func NewMetrics ¶
func NewMetrics(isLoggingFn IsLoggingFn, loggingfFn LoggingfFn) *Processor
NewMetrics returns a new system for gathering metrics
func (*Processor) ASTPkgCacheHitsInc ¶
func (m *Processor) ASTPkgCacheHitsInc()
ASTPkgCacheHitsInc increments the ASTPkgCacheHits metric
func (*Processor) ASTPkgCacheMissesInc ¶
func (m *Processor) ASTPkgCacheMissesInc()
ASTPkgCacheMissesInc increments the ASTPkgCacheMisses metric
func (*Processor) ASTTotalDecorationTimeInc ¶
ASTTotalDecorationTimeInc increments the ASTTotalDecorationTime duration metric by the d duration specified
func (*Processor) ASTTotalLoadTimeInc ¶
ASTTotalLoadTimeInc increments the ASTTotalLoadTime duration metric by the d duration specified
func (*Processor) Finalize ¶
func (m *Processor) Finalize()
Finalize is called after generating mocks to log metrics
func (*Processor) TotalProcessingTimeInc ¶
TotalProcessingTimeInc increments the TotalProcessingTime duration metric by the d duration specified