mocks

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IReporter

type IReporter struct {
	mock.Mock
}

IReporter is an autogenerated mock type for the IReporter type

func (*IReporter) AddHostnameSuffix

func (_m *IReporter) AddHostnameSuffix(_a0 string)

AddHostnameSuffix provides a mock function with given fields: _a0

func (*IReporter) AddStat

func (_m *IReporter) AddStat(key string, val interface{})

AddStat provides a mock function with given fields: key, val

func (*IReporter) ClearAll

func (_m *IReporter) ClearAll()

ClearAll provides a mock function with given fields:

func (*IReporter) ClearStat

func (_m *IReporter) ClearStat(key string)

ClearStat provides a mock function with given fields: key

func (*IReporter) ClearStatFns

func (_m *IReporter) ClearStatFns()

ClearStatFns provides a mock function with given fields:

func (*IReporter) ClearStats

func (_m *IReporter) ClearStats()

ClearStats provides a mock function with given fields:

func (*IReporter) GetKafkaLogWriter

func (_m *IReporter) GetKafkaLogWriter() io.Writer

GetKafkaLogWriter provides a mock function with given fields:

func (*IReporter) GetStat

func (_m *IReporter) GetStat(key string) interface{}

GetStat provides a mock function with given fields: key

func (*IReporter) Health

func (_m *IReporter) Health() health.Event

Health provides a mock function with given fields:

func (*IReporter) HealthHandler

func (_m *IReporter) HealthHandler(w http.ResponseWriter, req *http.Request)

HealthHandler provides a mock function with given fields: w, req

func (*IReporter) Initialize

func (_m *IReporter) Initialize() (bool, error)

Initialize provides a mock function with given fields:

func (*IReporter) KafkaHealthy

func (_m *IReporter) KafkaHealthy() (bool, error)

KafkaHealthy provides a mock function with given fields:

func (*IReporter) PersistStat

func (_m *IReporter) PersistStat(key string, val interface{})

PersistStat provides a mock function with given fields: key, val

func (*IReporter) RegisterStatFn

func (_m *IReporter) RegisterStatFn(name string, fn func(health.IReporter))

RegisterStatFn provides a mock function with given fields: name, fn

func (*IReporter) ReportHealth

func (_m *IReporter) ReportHealth()

ReportHealth provides a mock function with given fields:

func (*IReporter) SetErrFn

func (_m *IReporter) SetErrFn(efn func(error))

SetErrFn provides a mock function with given fields: efn

func (*IReporter) SetHealth

func (_m *IReporter) SetHealth(state health.State, message string)

SetHealth provides a mock function with given fields: state, message

func (*IReporter) SetStdOutFallback

func (_m *IReporter) SetStdOutFallback(b bool)

SetStdOutFallback provides a mock function with given fields: b

func (*IReporter) SetTopic

func (_m *IReporter) SetTopic(topic string)

SetTopic provides a mock function with given fields: topic

func (*IReporter) StartIntervalReporting

func (_m *IReporter) StartIntervalReporting(interval time.Duration)

StartIntervalReporting provides a mock function with given fields: interval

func (*IReporter) Stop

func (_m *IReporter) Stop() error

Stop provides a mock function with given fields:

func (*IReporter) StopWithFinalState

func (_m *IReporter) StopWithFinalState(final health.State, msg string) error

StopWithFinalState provides a mock function with given fields: final, msg

type Signal

type Signal struct {
	mock.Mock
}

Signal is an autogenerated mock type for the Signal type

func (*Signal) RawReport

func (_m *Signal) RawReport(_a0 []byte) error

RawReport provides a mock function with given fields: _a0

func (*Signal) Report

func (_m *Signal) Report(_a0 health.Event, _a1 interface{}) error

Report provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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