mocks

package
v0.0.0-...-ff1b721 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRegistry

type MockRegistry struct {
	GatherFunc func() ([]*go1.MetricFamily, error)

	MustRegisterFunc func(...prometheus.Collector)

	RegisterFunc func(prometheus.Collector) error

	UnregisterFunc func(prometheus.Collector) bool
	// contains filtered or unexported fields
}

func NewMockRegistry

func NewMockRegistry() *MockRegistry

func (*MockRegistry) Gather

func (m *MockRegistry) Gather() ([]*go1.MetricFamily, error)

func (*MockRegistry) GatherFuncCallCount

func (m *MockRegistry) GatherFuncCallCount() int

func (*MockRegistry) GatherFuncCallParams

func (m *MockRegistry) GatherFuncCallParams() []RegistryGatherParamSet

func (*MockRegistry) MustRegister

func (m *MockRegistry) MustRegister(v0 ...prometheus.Collector)

func (*MockRegistry) MustRegisterFuncCallCount

func (m *MockRegistry) MustRegisterFuncCallCount() int

func (*MockRegistry) MustRegisterFuncCallParams

func (m *MockRegistry) MustRegisterFuncCallParams() []RegistryMustRegisterParamSet

func (*MockRegistry) Register

func (m *MockRegistry) Register(v0 prometheus.Collector) error

func (*MockRegistry) RegisterFuncCallCount

func (m *MockRegistry) RegisterFuncCallCount() int

func (*MockRegistry) RegisterFuncCallParams

func (m *MockRegistry) RegisterFuncCallParams() []RegistryRegisterParamSet

func (*MockRegistry) Unregister

func (m *MockRegistry) Unregister(v0 prometheus.Collector) bool

func (*MockRegistry) UnregisterFuncCallCount

func (m *MockRegistry) UnregisterFuncCallCount() int

func (*MockRegistry) UnregisterFuncCallParams

func (m *MockRegistry) UnregisterFuncCallParams() []RegistryUnregisterParamSet

type RegistryGatherParamSet

type RegistryGatherParamSet struct{}

type RegistryMustRegisterParamSet

type RegistryMustRegisterParamSet struct {
	Arg0 []prometheus.Collector
}

type RegistryRegisterParamSet

type RegistryRegisterParamSet struct {
	Arg0 prometheus.Collector
}

type RegistryUnregisterParamSet

type RegistryUnregisterParamSet struct {
	Arg0 prometheus.Collector
}

Jump to

Keyboard shortcuts

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