Documentation ¶
Overview ¶
Package interfaces contains interfaces for wpool package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockLogger ¶
MockLogger is an autogenerated mock type for the Logger type
func NewMockLogger ¶
func NewMockLogger(t testing.TB) *MockLogger
NewMockLogger creates a new instance of MockLogger. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockLogger) Errorf ¶
func (_m *MockLogger) Errorf(_a0 error, _a1 string, _a2 ...interface{})
Errorf provides a mock function with given fields: _a0, _a1, _a2
func (*MockLogger) Infof ¶
func (_m *MockLogger) Infof(_a0 string, _a1 ...interface{})
Infof provides a mock function with given fields: _a0, _a1
type MockPool ¶
MockPool is an autogenerated mock type for the Pool type
func NewMockPool ¶
NewMockPool creates a new instance of MockPool. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
type MockTask ¶
MockTask is an autogenerated mock type for the Task type
func NewMockTask ¶
NewMockTask creates a new instance of MockTask. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
type MockWorker ¶
MockWorker is an autogenerated mock type for the Worker type
func NewMockWorker ¶
func NewMockWorker(t testing.TB) *MockWorker
NewMockWorker creates a new instance of MockWorker. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockWorker) Close ¶
func (_m *MockWorker) Close() error
Close provides a mock function with given fields:
func (*MockWorker) Do ¶
func (_m *MockWorker) Do(_a0 Task) error
Do provides a mock function with given fields: _a0