Documentation ¶
Index ¶
- type Checker
- func (_m *Checker) Close() error
- func (_m *Checker) EXPECT() *Checker_Expecter
- func (_m *Checker) IsHealthy() (bool, map[string]error)
- func (_m *Checker) IsReady() (bool, map[string]error)
- func (_m *Checker) Register(service pkgservices.HealthReporter) error
- func (_m *Checker) Start() error
- func (_m *Checker) Unregister(name string) error
- type Checker_Close_Call
- type Checker_Expecter
- func (_e *Checker_Expecter) Close() *Checker_Close_Call
- func (_e *Checker_Expecter) IsHealthy() *Checker_IsHealthy_Call
- func (_e *Checker_Expecter) IsReady() *Checker_IsReady_Call
- func (_e *Checker_Expecter) Register(service interface{}) *Checker_Register_Call
- func (_e *Checker_Expecter) Start() *Checker_Start_Call
- func (_e *Checker_Expecter) Unregister(name interface{}) *Checker_Unregister_Call
- type Checker_IsHealthy_Call
- type Checker_IsReady_Call
- type Checker_Register_Call
- type Checker_Start_Call
- type Checker_Unregister_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
Checker is an autogenerated mock type for the Checker type
func NewChecker ¶
NewChecker creates a new instance of Checker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Checker) EXPECT ¶ added in v2.15.0
func (_m *Checker) EXPECT() *Checker_Expecter
func (*Checker) Register ¶
func (_m *Checker) Register(service pkgservices.HealthReporter) error
Register provides a mock function with given fields: service
func (*Checker) Unregister ¶
Unregister provides a mock function with given fields: name
type Checker_Close_Call ¶ added in v2.15.0
Checker_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*Checker_Close_Call) Return ¶ added in v2.15.0
func (_c *Checker_Close_Call) Return(_a0 error) *Checker_Close_Call
func (*Checker_Close_Call) Run ¶ added in v2.15.0
func (_c *Checker_Close_Call) Run(run func()) *Checker_Close_Call
func (*Checker_Close_Call) RunAndReturn ¶ added in v2.15.0
func (_c *Checker_Close_Call) RunAndReturn(run func() error) *Checker_Close_Call
type Checker_Expecter ¶ added in v2.15.0
type Checker_Expecter struct {
// contains filtered or unexported fields
}
func (*Checker_Expecter) Close ¶ added in v2.15.0
func (_e *Checker_Expecter) Close() *Checker_Close_Call
Close is a helper method to define mock.On call
func (*Checker_Expecter) IsHealthy ¶ added in v2.15.0
func (_e *Checker_Expecter) IsHealthy() *Checker_IsHealthy_Call
IsHealthy is a helper method to define mock.On call
func (*Checker_Expecter) IsReady ¶ added in v2.15.0
func (_e *Checker_Expecter) IsReady() *Checker_IsReady_Call
IsReady is a helper method to define mock.On call
func (*Checker_Expecter) Register ¶ added in v2.15.0
func (_e *Checker_Expecter) Register(service interface{}) *Checker_Register_Call
Register is a helper method to define mock.On call
- service pkgservices.HealthReporter
func (*Checker_Expecter) Start ¶ added in v2.15.0
func (_e *Checker_Expecter) Start() *Checker_Start_Call
Start is a helper method to define mock.On call
func (*Checker_Expecter) Unregister ¶ added in v2.15.0
func (_e *Checker_Expecter) Unregister(name interface{}) *Checker_Unregister_Call
Unregister is a helper method to define mock.On call
- name string
type Checker_IsHealthy_Call ¶ added in v2.15.0
Checker_IsHealthy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsHealthy'
func (*Checker_IsHealthy_Call) Return ¶ added in v2.15.0
func (_c *Checker_IsHealthy_Call) Return(healthy bool, errors map[string]error) *Checker_IsHealthy_Call
func (*Checker_IsHealthy_Call) Run ¶ added in v2.15.0
func (_c *Checker_IsHealthy_Call) Run(run func()) *Checker_IsHealthy_Call
func (*Checker_IsHealthy_Call) RunAndReturn ¶ added in v2.15.0
func (_c *Checker_IsHealthy_Call) RunAndReturn(run func() (bool, map[string]error)) *Checker_IsHealthy_Call
type Checker_IsReady_Call ¶ added in v2.15.0
Checker_IsReady_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsReady'
func (*Checker_IsReady_Call) Return ¶ added in v2.15.0
func (_c *Checker_IsReady_Call) Return(ready bool, errors map[string]error) *Checker_IsReady_Call
func (*Checker_IsReady_Call) Run ¶ added in v2.15.0
func (_c *Checker_IsReady_Call) Run(run func()) *Checker_IsReady_Call
func (*Checker_IsReady_Call) RunAndReturn ¶ added in v2.15.0
func (_c *Checker_IsReady_Call) RunAndReturn(run func() (bool, map[string]error)) *Checker_IsReady_Call
type Checker_Register_Call ¶ added in v2.15.0
Checker_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'
func (*Checker_Register_Call) Return ¶ added in v2.15.0
func (_c *Checker_Register_Call) Return(_a0 error) *Checker_Register_Call
func (*Checker_Register_Call) Run ¶ added in v2.15.0
func (_c *Checker_Register_Call) Run(run func(service pkgservices.HealthReporter)) *Checker_Register_Call
func (*Checker_Register_Call) RunAndReturn ¶ added in v2.15.0
func (_c *Checker_Register_Call) RunAndReturn(run func(pkgservices.HealthReporter) error) *Checker_Register_Call
type Checker_Start_Call ¶ added in v2.15.0
Checker_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*Checker_Start_Call) Return ¶ added in v2.15.0
func (_c *Checker_Start_Call) Return(_a0 error) *Checker_Start_Call
func (*Checker_Start_Call) Run ¶ added in v2.15.0
func (_c *Checker_Start_Call) Run(run func()) *Checker_Start_Call
func (*Checker_Start_Call) RunAndReturn ¶ added in v2.15.0
func (_c *Checker_Start_Call) RunAndReturn(run func() error) *Checker_Start_Call
type Checker_Unregister_Call ¶ added in v2.15.0
Checker_Unregister_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unregister'
func (*Checker_Unregister_Call) Return ¶ added in v2.15.0
func (_c *Checker_Unregister_Call) Return(_a0 error) *Checker_Unregister_Call
func (*Checker_Unregister_Call) Run ¶ added in v2.15.0
func (_c *Checker_Unregister_Call) Run(run func(name string)) *Checker_Unregister_Call
func (*Checker_Unregister_Call) RunAndReturn ¶ added in v2.15.0
func (_c *Checker_Unregister_Call) RunAndReturn(run func(string) error) *Checker_Unregister_Call