Documentation ¶
Overview ¶
Package gc is a generated GoMock package.
Package gc is a generated GoMock package.
Package gc is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GC ¶
type GC interface { // Add adds GC task Add(Task) error // Run GC task Run(string) error // Run all registered GC tasks RunAll() // Serve running the GC task Serve() // Stop running the GC task Stop() }
GC is the interface used for release resource
type Logger ¶
type Logger interface { // Infof logs routine messages for GC Infof(template string, args ...interface{}) // Error logs error messages for GC Errorf(template string, args ...interface{}) }
Logger is the interface used in GC for logging
type MockGC ¶ added in v2.0.2
type MockGC struct {
// contains filtered or unexported fields
}
MockGC is a mock of GC interface.
func NewMockGC ¶ added in v2.0.2
func NewMockGC(ctrl *gomock.Controller) *MockGC
NewMockGC creates a new mock instance.
func (*MockGC) EXPECT ¶ added in v2.0.2
func (m *MockGC) EXPECT() *MockGCMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockGCMockRecorder ¶ added in v2.0.2
type MockGCMockRecorder struct {
// contains filtered or unexported fields
}
MockGCMockRecorder is the mock recorder for MockGC.
func (*MockGCMockRecorder) Add ¶ added in v2.0.2
func (mr *MockGCMockRecorder) Add(arg0 interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockGCMockRecorder) Run ¶ added in v2.0.2
func (mr *MockGCMockRecorder) Run(arg0 interface{}) *gomock.Call
Run indicates an expected call of Run.
func (*MockGCMockRecorder) RunAll ¶ added in v2.0.2
func (mr *MockGCMockRecorder) RunAll() *gomock.Call
RunAll indicates an expected call of RunAll.
func (*MockGCMockRecorder) Serve ¶ added in v2.0.2
func (mr *MockGCMockRecorder) Serve() *gomock.Call
Serve indicates an expected call of Serve.
func (*MockGCMockRecorder) Stop ¶ added in v2.0.2
func (mr *MockGCMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
type MockLogger ¶ added in v2.0.2
type MockLogger struct {
// contains filtered or unexported fields
}
MockLogger is a mock of Logger interface.
func NewMockLogger ¶ added in v2.0.2
func NewMockLogger(ctrl *gomock.Controller) *MockLogger
NewMockLogger creates a new mock instance.
func (*MockLogger) EXPECT ¶ added in v2.0.2
func (m *MockLogger) EXPECT() *MockLoggerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLogger) Errorf ¶ added in v2.0.2
func (m *MockLogger) Errorf(template string, args ...interface{})
Errorf mocks base method.
func (*MockLogger) Infof ¶ added in v2.0.2
func (m *MockLogger) Infof(template string, args ...interface{})
Infof mocks base method.
type MockLoggerMockRecorder ¶ added in v2.0.2
type MockLoggerMockRecorder struct {
// contains filtered or unexported fields
}
MockLoggerMockRecorder is the mock recorder for MockLogger.
func (*MockLoggerMockRecorder) Errorf ¶ added in v2.0.2
func (mr *MockLoggerMockRecorder) Errorf(template interface{}, args ...interface{}) *gomock.Call
Errorf indicates an expected call of Errorf.
func (*MockLoggerMockRecorder) Infof ¶ added in v2.0.2
func (mr *MockLoggerMockRecorder) Infof(template interface{}, args ...interface{}) *gomock.Call
Infof indicates an expected call of Infof.
type MockRunner ¶ added in v2.0.2
type MockRunner struct {
// contains filtered or unexported fields
}
MockRunner is a mock of Runner interface.
func NewMockRunner ¶ added in v2.0.2
func NewMockRunner(ctrl *gomock.Controller) *MockRunner
NewMockRunner creates a new mock instance.
func (*MockRunner) EXPECT ¶ added in v2.0.2
func (m *MockRunner) EXPECT() *MockRunnerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRunner) RunGC ¶ added in v2.0.2
func (m *MockRunner) RunGC() error
RunGC mocks base method.
type MockRunnerMockRecorder ¶ added in v2.0.2
type MockRunnerMockRecorder struct {
// contains filtered or unexported fields
}
MockRunnerMockRecorder is the mock recorder for MockRunner.
func (*MockRunnerMockRecorder) RunGC ¶ added in v2.0.2
func (mr *MockRunnerMockRecorder) RunGC() *gomock.Call
RunGC indicates an expected call of RunGC.