Documentation
¶
Index ¶
- type Event
- func (_m *Event) At(time string) schedule.Event
- func (_m *Event) Cron(expression string) schedule.Event
- func (_m *Event) Daily() schedule.Event
- func (_m *Event) DailyAt(time string) schedule.Event
- func (_m *Event) DelayIfStillRunning() schedule.Event
- func (_m *Event) EXPECT() *Event_Expecter
- func (_m *Event) EveryFifteenMinutes() schedule.Event
- func (_m *Event) EveryFiveMinutes() schedule.Event
- func (_m *Event) EveryFourHours() schedule.Event
- func (_m *Event) EveryFourMinutes() schedule.Event
- func (_m *Event) EveryMinute() schedule.Event
- func (_m *Event) EverySixHours() schedule.Event
- func (_m *Event) EveryTenMinutes() schedule.Event
- func (_m *Event) EveryThirtyMinutes() schedule.Event
- func (_m *Event) EveryThreeHours() schedule.Event
- func (_m *Event) EveryThreeMinutes() schedule.Event
- func (_m *Event) EveryTwoHours() schedule.Event
- func (_m *Event) EveryTwoMinutes() schedule.Event
- func (_m *Event) GetCallback() func()
- func (_m *Event) GetCommand() string
- func (_m *Event) GetCron() string
- func (_m *Event) GetDelayIfStillRunning() bool
- func (_m *Event) GetName() string
- func (_m *Event) GetSkipIfStillRunning() bool
- func (_m *Event) Hourly() schedule.Event
- func (_m *Event) HourlyAt(offset []string) schedule.Event
- func (_m *Event) IsOnOneServer() bool
- func (_m *Event) Name(name string) schedule.Event
- func (_m *Event) OnOneServer() schedule.Event
- func (_m *Event) SkipIfStillRunning() schedule.Event
- type Event_At_Call
- type Event_Cron_Call
- type Event_DailyAt_Call
- type Event_Daily_Call
- type Event_DelayIfStillRunning_Call
- func (_c *Event_DelayIfStillRunning_Call) Return(_a0 schedule.Event) *Event_DelayIfStillRunning_Call
- func (_c *Event_DelayIfStillRunning_Call) Run(run func()) *Event_DelayIfStillRunning_Call
- func (_c *Event_DelayIfStillRunning_Call) RunAndReturn(run func() schedule.Event) *Event_DelayIfStillRunning_Call
- type Event_EveryFifteenMinutes_Call
- func (_c *Event_EveryFifteenMinutes_Call) Return(_a0 schedule.Event) *Event_EveryFifteenMinutes_Call
- func (_c *Event_EveryFifteenMinutes_Call) Run(run func()) *Event_EveryFifteenMinutes_Call
- func (_c *Event_EveryFifteenMinutes_Call) RunAndReturn(run func() schedule.Event) *Event_EveryFifteenMinutes_Call
- type Event_EveryFiveMinutes_Call
- type Event_EveryFourHours_Call
- type Event_EveryFourMinutes_Call
- type Event_EveryMinute_Call
- type Event_EverySixHours_Call
- type Event_EveryTenMinutes_Call
- type Event_EveryThirtyMinutes_Call
- type Event_EveryThreeHours_Call
- type Event_EveryThreeMinutes_Call
- type Event_EveryTwoHours_Call
- type Event_EveryTwoMinutes_Call
- type Event_Expecter
- func (_e *Event_Expecter) At(time interface{}) *Event_At_Call
- func (_e *Event_Expecter) Cron(expression interface{}) *Event_Cron_Call
- func (_e *Event_Expecter) Daily() *Event_Daily_Call
- func (_e *Event_Expecter) DailyAt(time interface{}) *Event_DailyAt_Call
- func (_e *Event_Expecter) DelayIfStillRunning() *Event_DelayIfStillRunning_Call
- func (_e *Event_Expecter) EveryFifteenMinutes() *Event_EveryFifteenMinutes_Call
- func (_e *Event_Expecter) EveryFiveMinutes() *Event_EveryFiveMinutes_Call
- func (_e *Event_Expecter) EveryFourHours() *Event_EveryFourHours_Call
- func (_e *Event_Expecter) EveryFourMinutes() *Event_EveryFourMinutes_Call
- func (_e *Event_Expecter) EveryMinute() *Event_EveryMinute_Call
- func (_e *Event_Expecter) EverySixHours() *Event_EverySixHours_Call
- func (_e *Event_Expecter) EveryTenMinutes() *Event_EveryTenMinutes_Call
- func (_e *Event_Expecter) EveryThirtyMinutes() *Event_EveryThirtyMinutes_Call
- func (_e *Event_Expecter) EveryThreeHours() *Event_EveryThreeHours_Call
- func (_e *Event_Expecter) EveryThreeMinutes() *Event_EveryThreeMinutes_Call
- func (_e *Event_Expecter) EveryTwoHours() *Event_EveryTwoHours_Call
- func (_e *Event_Expecter) EveryTwoMinutes() *Event_EveryTwoMinutes_Call
- func (_e *Event_Expecter) GetCallback() *Event_GetCallback_Call
- func (_e *Event_Expecter) GetCommand() *Event_GetCommand_Call
- func (_e *Event_Expecter) GetCron() *Event_GetCron_Call
- func (_e *Event_Expecter) GetDelayIfStillRunning() *Event_GetDelayIfStillRunning_Call
- func (_e *Event_Expecter) GetName() *Event_GetName_Call
- func (_e *Event_Expecter) GetSkipIfStillRunning() *Event_GetSkipIfStillRunning_Call
- func (_e *Event_Expecter) Hourly() *Event_Hourly_Call
- func (_e *Event_Expecter) HourlyAt(offset interface{}) *Event_HourlyAt_Call
- func (_e *Event_Expecter) IsOnOneServer() *Event_IsOnOneServer_Call
- func (_e *Event_Expecter) Name(name interface{}) *Event_Name_Call
- func (_e *Event_Expecter) OnOneServer() *Event_OnOneServer_Call
- func (_e *Event_Expecter) SkipIfStillRunning() *Event_SkipIfStillRunning_Call
- type Event_GetCallback_Call
- type Event_GetCommand_Call
- type Event_GetCron_Call
- type Event_GetDelayIfStillRunning_Call
- func (_c *Event_GetDelayIfStillRunning_Call) Return(_a0 bool) *Event_GetDelayIfStillRunning_Call
- func (_c *Event_GetDelayIfStillRunning_Call) Run(run func()) *Event_GetDelayIfStillRunning_Call
- func (_c *Event_GetDelayIfStillRunning_Call) RunAndReturn(run func() bool) *Event_GetDelayIfStillRunning_Call
- type Event_GetName_Call
- type Event_GetSkipIfStillRunning_Call
- type Event_HourlyAt_Call
- type Event_Hourly_Call
- type Event_IsOnOneServer_Call
- type Event_Name_Call
- type Event_OnOneServer_Call
- type Event_SkipIfStillRunning_Call
- type Schedule
- func (_m *Schedule) Call(callback func()) schedule.Event
- func (_m *Schedule) Command(command string) schedule.Event
- func (_m *Schedule) EXPECT() *Schedule_Expecter
- func (_m *Schedule) Register(events []schedule.Event)
- func (_m *Schedule) Run()
- func (_m *Schedule) Shutdown(ctx ...context.Context) error
- type Schedule_Call_Call
- type Schedule_Command_Call
- type Schedule_Expecter
- func (_e *Schedule_Expecter) Call(callback interface{}) *Schedule_Call_Call
- func (_e *Schedule_Expecter) Command(command interface{}) *Schedule_Command_Call
- func (_e *Schedule_Expecter) Register(events interface{}) *Schedule_Register_Call
- func (_e *Schedule_Expecter) Run() *Schedule_Run_Call
- func (_e *Schedule_Expecter) Shutdown(ctx ...interface{}) *Schedule_Shutdown_Call
- type Schedule_Register_Call
- type Schedule_Run_Call
- type Schedule_Shutdown_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
Event is an autogenerated mock type for the Event type
func NewEvent ¶
NewEvent creates a new instance of Event. 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 (*Event) DelayIfStillRunning ¶
DelayIfStillRunning provides a mock function with no fields
func (*Event) EXPECT ¶
func (_m *Event) EXPECT() *Event_Expecter
func (*Event) EveryFifteenMinutes ¶
EveryFifteenMinutes provides a mock function with no fields
func (*Event) EveryFiveMinutes ¶
EveryFiveMinutes provides a mock function with no fields
func (*Event) EveryFourHours ¶
EveryFourHours provides a mock function with no fields
func (*Event) EveryFourMinutes ¶
EveryFourMinutes provides a mock function with no fields
func (*Event) EveryMinute ¶
EveryMinute provides a mock function with no fields
func (*Event) EverySixHours ¶
EverySixHours provides a mock function with no fields
func (*Event) EveryTenMinutes ¶
EveryTenMinutes provides a mock function with no fields
func (*Event) EveryThirtyMinutes ¶
EveryThirtyMinutes provides a mock function with no fields
func (*Event) EveryThreeHours ¶
EveryThreeHours provides a mock function with no fields
func (*Event) EveryThreeMinutes ¶
EveryThreeMinutes provides a mock function with no fields
func (*Event) EveryTwoHours ¶
EveryTwoHours provides a mock function with no fields
func (*Event) EveryTwoMinutes ¶
EveryTwoMinutes provides a mock function with no fields
func (*Event) GetCallback ¶
func (_m *Event) GetCallback() func()
GetCallback provides a mock function with no fields
func (*Event) GetCommand ¶
GetCommand provides a mock function with no fields
func (*Event) GetDelayIfStillRunning ¶
GetDelayIfStillRunning provides a mock function with no fields
func (*Event) GetSkipIfStillRunning ¶
GetSkipIfStillRunning provides a mock function with no fields
func (*Event) IsOnOneServer ¶
IsOnOneServer provides a mock function with no fields
func (*Event) OnOneServer ¶
OnOneServer provides a mock function with no fields
func (*Event) SkipIfStillRunning ¶
SkipIfStillRunning provides a mock function with no fields
type Event_At_Call ¶
Event_At_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'At'
func (*Event_At_Call) Return ¶
func (_c *Event_At_Call) Return(_a0 schedule.Event) *Event_At_Call
func (*Event_At_Call) Run ¶
func (_c *Event_At_Call) Run(run func(time string)) *Event_At_Call
func (*Event_At_Call) RunAndReturn ¶
func (_c *Event_At_Call) RunAndReturn(run func(string) schedule.Event) *Event_At_Call
type Event_Cron_Call ¶
Event_Cron_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cron'
func (*Event_Cron_Call) Return ¶
func (_c *Event_Cron_Call) Return(_a0 schedule.Event) *Event_Cron_Call
func (*Event_Cron_Call) Run ¶
func (_c *Event_Cron_Call) Run(run func(expression string)) *Event_Cron_Call
func (*Event_Cron_Call) RunAndReturn ¶
func (_c *Event_Cron_Call) RunAndReturn(run func(string) schedule.Event) *Event_Cron_Call
type Event_DailyAt_Call ¶
Event_DailyAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DailyAt'
func (*Event_DailyAt_Call) Return ¶
func (_c *Event_DailyAt_Call) Return(_a0 schedule.Event) *Event_DailyAt_Call
func (*Event_DailyAt_Call) Run ¶
func (_c *Event_DailyAt_Call) Run(run func(time string)) *Event_DailyAt_Call
func (*Event_DailyAt_Call) RunAndReturn ¶
func (_c *Event_DailyAt_Call) RunAndReturn(run func(string) schedule.Event) *Event_DailyAt_Call
type Event_Daily_Call ¶
Event_Daily_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Daily'
func (*Event_Daily_Call) Return ¶
func (_c *Event_Daily_Call) Return(_a0 schedule.Event) *Event_Daily_Call
func (*Event_Daily_Call) Run ¶
func (_c *Event_Daily_Call) Run(run func()) *Event_Daily_Call
func (*Event_Daily_Call) RunAndReturn ¶
func (_c *Event_Daily_Call) RunAndReturn(run func() schedule.Event) *Event_Daily_Call
type Event_DelayIfStillRunning_Call ¶
Event_DelayIfStillRunning_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DelayIfStillRunning'
func (*Event_DelayIfStillRunning_Call) Return ¶
func (_c *Event_DelayIfStillRunning_Call) Return(_a0 schedule.Event) *Event_DelayIfStillRunning_Call
func (*Event_DelayIfStillRunning_Call) Run ¶
func (_c *Event_DelayIfStillRunning_Call) Run(run func()) *Event_DelayIfStillRunning_Call
func (*Event_DelayIfStillRunning_Call) RunAndReturn ¶
func (_c *Event_DelayIfStillRunning_Call) RunAndReturn(run func() schedule.Event) *Event_DelayIfStillRunning_Call
type Event_EveryFifteenMinutes_Call ¶
Event_EveryFifteenMinutes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EveryFifteenMinutes'
func (*Event_EveryFifteenMinutes_Call) Return ¶
func (_c *Event_EveryFifteenMinutes_Call) Return(_a0 schedule.Event) *Event_EveryFifteenMinutes_Call
func (*Event_EveryFifteenMinutes_Call) Run ¶
func (_c *Event_EveryFifteenMinutes_Call) Run(run func()) *Event_EveryFifteenMinutes_Call
func (*Event_EveryFifteenMinutes_Call) RunAndReturn ¶
func (_c *Event_EveryFifteenMinutes_Call) RunAndReturn(run func() schedule.Event) *Event_EveryFifteenMinutes_Call
type Event_EveryFiveMinutes_Call ¶
Event_EveryFiveMinutes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EveryFiveMinutes'
func (*Event_EveryFiveMinutes_Call) Return ¶
func (_c *Event_EveryFiveMinutes_Call) Return(_a0 schedule.Event) *Event_EveryFiveMinutes_Call
func (*Event_EveryFiveMinutes_Call) Run ¶
func (_c *Event_EveryFiveMinutes_Call) Run(run func()) *Event_EveryFiveMinutes_Call
func (*Event_EveryFiveMinutes_Call) RunAndReturn ¶
func (_c *Event_EveryFiveMinutes_Call) RunAndReturn(run func() schedule.Event) *Event_EveryFiveMinutes_Call
type Event_EveryFourHours_Call ¶
Event_EveryFourHours_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EveryFourHours'
func (*Event_EveryFourHours_Call) Return ¶
func (_c *Event_EveryFourHours_Call) Return(_a0 schedule.Event) *Event_EveryFourHours_Call
func (*Event_EveryFourHours_Call) Run ¶
func (_c *Event_EveryFourHours_Call) Run(run func()) *Event_EveryFourHours_Call
func (*Event_EveryFourHours_Call) RunAndReturn ¶
func (_c *Event_EveryFourHours_Call) RunAndReturn(run func() schedule.Event) *Event_EveryFourHours_Call
type Event_EveryFourMinutes_Call ¶
Event_EveryFourMinutes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EveryFourMinutes'
func (*Event_EveryFourMinutes_Call) Return ¶
func (_c *Event_EveryFourMinutes_Call) Return(_a0 schedule.Event) *Event_EveryFourMinutes_Call
func (*Event_EveryFourMinutes_Call) Run ¶
func (_c *Event_EveryFourMinutes_Call) Run(run func()) *Event_EveryFourMinutes_Call
func (*Event_EveryFourMinutes_Call) RunAndReturn ¶
func (_c *Event_EveryFourMinutes_Call) RunAndReturn(run func() schedule.Event) *Event_EveryFourMinutes_Call
type Event_EveryMinute_Call ¶
Event_EveryMinute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EveryMinute'
func (*Event_EveryMinute_Call) Return ¶
func (_c *Event_EveryMinute_Call) Return(_a0 schedule.Event) *Event_EveryMinute_Call
func (*Event_EveryMinute_Call) Run ¶
func (_c *Event_EveryMinute_Call) Run(run func()) *Event_EveryMinute_Call
func (*Event_EveryMinute_Call) RunAndReturn ¶
func (_c *Event_EveryMinute_Call) RunAndReturn(run func() schedule.Event) *Event_EveryMinute_Call
type Event_EverySixHours_Call ¶
Event_EverySixHours_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EverySixHours'
func (*Event_EverySixHours_Call) Return ¶
func (_c *Event_EverySixHours_Call) Return(_a0 schedule.Event) *Event_EverySixHours_Call
func (*Event_EverySixHours_Call) Run ¶
func (_c *Event_EverySixHours_Call) Run(run func()) *Event_EverySixHours_Call
func (*Event_EverySixHours_Call) RunAndReturn ¶
func (_c *Event_EverySixHours_Call) RunAndReturn(run func() schedule.Event) *Event_EverySixHours_Call
type Event_EveryTenMinutes_Call ¶
Event_EveryTenMinutes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EveryTenMinutes'
func (*Event_EveryTenMinutes_Call) Return ¶
func (_c *Event_EveryTenMinutes_Call) Return(_a0 schedule.Event) *Event_EveryTenMinutes_Call
func (*Event_EveryTenMinutes_Call) Run ¶
func (_c *Event_EveryTenMinutes_Call) Run(run func()) *Event_EveryTenMinutes_Call
func (*Event_EveryTenMinutes_Call) RunAndReturn ¶
func (_c *Event_EveryTenMinutes_Call) RunAndReturn(run func() schedule.Event) *Event_EveryTenMinutes_Call
type Event_EveryThirtyMinutes_Call ¶
Event_EveryThirtyMinutes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EveryThirtyMinutes'
func (*Event_EveryThirtyMinutes_Call) Return ¶
func (_c *Event_EveryThirtyMinutes_Call) Return(_a0 schedule.Event) *Event_EveryThirtyMinutes_Call
func (*Event_EveryThirtyMinutes_Call) Run ¶
func (_c *Event_EveryThirtyMinutes_Call) Run(run func()) *Event_EveryThirtyMinutes_Call
func (*Event_EveryThirtyMinutes_Call) RunAndReturn ¶
func (_c *Event_EveryThirtyMinutes_Call) RunAndReturn(run func() schedule.Event) *Event_EveryThirtyMinutes_Call
type Event_EveryThreeHours_Call ¶
Event_EveryThreeHours_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EveryThreeHours'
func (*Event_EveryThreeHours_Call) Return ¶
func (_c *Event_EveryThreeHours_Call) Return(_a0 schedule.Event) *Event_EveryThreeHours_Call
func (*Event_EveryThreeHours_Call) Run ¶
func (_c *Event_EveryThreeHours_Call) Run(run func()) *Event_EveryThreeHours_Call
func (*Event_EveryThreeHours_Call) RunAndReturn ¶
func (_c *Event_EveryThreeHours_Call) RunAndReturn(run func() schedule.Event) *Event_EveryThreeHours_Call
type Event_EveryThreeMinutes_Call ¶
Event_EveryThreeMinutes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EveryThreeMinutes'
func (*Event_EveryThreeMinutes_Call) Return ¶
func (_c *Event_EveryThreeMinutes_Call) Return(_a0 schedule.Event) *Event_EveryThreeMinutes_Call
func (*Event_EveryThreeMinutes_Call) Run ¶
func (_c *Event_EveryThreeMinutes_Call) Run(run func()) *Event_EveryThreeMinutes_Call
func (*Event_EveryThreeMinutes_Call) RunAndReturn ¶
func (_c *Event_EveryThreeMinutes_Call) RunAndReturn(run func() schedule.Event) *Event_EveryThreeMinutes_Call
type Event_EveryTwoHours_Call ¶
Event_EveryTwoHours_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EveryTwoHours'
func (*Event_EveryTwoHours_Call) Return ¶
func (_c *Event_EveryTwoHours_Call) Return(_a0 schedule.Event) *Event_EveryTwoHours_Call
func (*Event_EveryTwoHours_Call) Run ¶
func (_c *Event_EveryTwoHours_Call) Run(run func()) *Event_EveryTwoHours_Call
func (*Event_EveryTwoHours_Call) RunAndReturn ¶
func (_c *Event_EveryTwoHours_Call) RunAndReturn(run func() schedule.Event) *Event_EveryTwoHours_Call
type Event_EveryTwoMinutes_Call ¶
Event_EveryTwoMinutes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EveryTwoMinutes'
func (*Event_EveryTwoMinutes_Call) Return ¶
func (_c *Event_EveryTwoMinutes_Call) Return(_a0 schedule.Event) *Event_EveryTwoMinutes_Call
func (*Event_EveryTwoMinutes_Call) Run ¶
func (_c *Event_EveryTwoMinutes_Call) Run(run func()) *Event_EveryTwoMinutes_Call
func (*Event_EveryTwoMinutes_Call) RunAndReturn ¶
func (_c *Event_EveryTwoMinutes_Call) RunAndReturn(run func() schedule.Event) *Event_EveryTwoMinutes_Call
type Event_Expecter ¶
type Event_Expecter struct {
// contains filtered or unexported fields
}
func (*Event_Expecter) At ¶
func (_e *Event_Expecter) At(time interface{}) *Event_At_Call
At is a helper method to define mock.On call
- time string
func (*Event_Expecter) Cron ¶
func (_e *Event_Expecter) Cron(expression interface{}) *Event_Cron_Call
Cron is a helper method to define mock.On call
- expression string
func (*Event_Expecter) Daily ¶
func (_e *Event_Expecter) Daily() *Event_Daily_Call
Daily is a helper method to define mock.On call
func (*Event_Expecter) DailyAt ¶
func (_e *Event_Expecter) DailyAt(time interface{}) *Event_DailyAt_Call
DailyAt is a helper method to define mock.On call
- time string
func (*Event_Expecter) DelayIfStillRunning ¶
func (_e *Event_Expecter) DelayIfStillRunning() *Event_DelayIfStillRunning_Call
DelayIfStillRunning is a helper method to define mock.On call
func (*Event_Expecter) EveryFifteenMinutes ¶
func (_e *Event_Expecter) EveryFifteenMinutes() *Event_EveryFifteenMinutes_Call
EveryFifteenMinutes is a helper method to define mock.On call
func (*Event_Expecter) EveryFiveMinutes ¶
func (_e *Event_Expecter) EveryFiveMinutes() *Event_EveryFiveMinutes_Call
EveryFiveMinutes is a helper method to define mock.On call
func (*Event_Expecter) EveryFourHours ¶
func (_e *Event_Expecter) EveryFourHours() *Event_EveryFourHours_Call
EveryFourHours is a helper method to define mock.On call
func (*Event_Expecter) EveryFourMinutes ¶
func (_e *Event_Expecter) EveryFourMinutes() *Event_EveryFourMinutes_Call
EveryFourMinutes is a helper method to define mock.On call
func (*Event_Expecter) EveryMinute ¶
func (_e *Event_Expecter) EveryMinute() *Event_EveryMinute_Call
EveryMinute is a helper method to define mock.On call
func (*Event_Expecter) EverySixHours ¶
func (_e *Event_Expecter) EverySixHours() *Event_EverySixHours_Call
EverySixHours is a helper method to define mock.On call
func (*Event_Expecter) EveryTenMinutes ¶
func (_e *Event_Expecter) EveryTenMinutes() *Event_EveryTenMinutes_Call
EveryTenMinutes is a helper method to define mock.On call
func (*Event_Expecter) EveryThirtyMinutes ¶
func (_e *Event_Expecter) EveryThirtyMinutes() *Event_EveryThirtyMinutes_Call
EveryThirtyMinutes is a helper method to define mock.On call
func (*Event_Expecter) EveryThreeHours ¶
func (_e *Event_Expecter) EveryThreeHours() *Event_EveryThreeHours_Call
EveryThreeHours is a helper method to define mock.On call
func (*Event_Expecter) EveryThreeMinutes ¶
func (_e *Event_Expecter) EveryThreeMinutes() *Event_EveryThreeMinutes_Call
EveryThreeMinutes is a helper method to define mock.On call
func (*Event_Expecter) EveryTwoHours ¶
func (_e *Event_Expecter) EveryTwoHours() *Event_EveryTwoHours_Call
EveryTwoHours is a helper method to define mock.On call
func (*Event_Expecter) EveryTwoMinutes ¶
func (_e *Event_Expecter) EveryTwoMinutes() *Event_EveryTwoMinutes_Call
EveryTwoMinutes is a helper method to define mock.On call
func (*Event_Expecter) GetCallback ¶
func (_e *Event_Expecter) GetCallback() *Event_GetCallback_Call
GetCallback is a helper method to define mock.On call
func (*Event_Expecter) GetCommand ¶
func (_e *Event_Expecter) GetCommand() *Event_GetCommand_Call
GetCommand is a helper method to define mock.On call
func (*Event_Expecter) GetCron ¶
func (_e *Event_Expecter) GetCron() *Event_GetCron_Call
GetCron is a helper method to define mock.On call
func (*Event_Expecter) GetDelayIfStillRunning ¶
func (_e *Event_Expecter) GetDelayIfStillRunning() *Event_GetDelayIfStillRunning_Call
GetDelayIfStillRunning is a helper method to define mock.On call
func (*Event_Expecter) GetName ¶
func (_e *Event_Expecter) GetName() *Event_GetName_Call
GetName is a helper method to define mock.On call
func (*Event_Expecter) GetSkipIfStillRunning ¶
func (_e *Event_Expecter) GetSkipIfStillRunning() *Event_GetSkipIfStillRunning_Call
GetSkipIfStillRunning is a helper method to define mock.On call
func (*Event_Expecter) Hourly ¶
func (_e *Event_Expecter) Hourly() *Event_Hourly_Call
Hourly is a helper method to define mock.On call
func (*Event_Expecter) HourlyAt ¶
func (_e *Event_Expecter) HourlyAt(offset interface{}) *Event_HourlyAt_Call
HourlyAt is a helper method to define mock.On call
- offset []string
func (*Event_Expecter) IsOnOneServer ¶
func (_e *Event_Expecter) IsOnOneServer() *Event_IsOnOneServer_Call
IsOnOneServer is a helper method to define mock.On call
func (*Event_Expecter) Name ¶
func (_e *Event_Expecter) Name(name interface{}) *Event_Name_Call
Name is a helper method to define mock.On call
- name string
func (*Event_Expecter) OnOneServer ¶
func (_e *Event_Expecter) OnOneServer() *Event_OnOneServer_Call
OnOneServer is a helper method to define mock.On call
func (*Event_Expecter) SkipIfStillRunning ¶
func (_e *Event_Expecter) SkipIfStillRunning() *Event_SkipIfStillRunning_Call
SkipIfStillRunning is a helper method to define mock.On call
type Event_GetCallback_Call ¶
Event_GetCallback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCallback'
func (*Event_GetCallback_Call) Return ¶
func (_c *Event_GetCallback_Call) Return(_a0 func()) *Event_GetCallback_Call
func (*Event_GetCallback_Call) Run ¶
func (_c *Event_GetCallback_Call) Run(run func()) *Event_GetCallback_Call
func (*Event_GetCallback_Call) RunAndReturn ¶
func (_c *Event_GetCallback_Call) RunAndReturn(run func() func()) *Event_GetCallback_Call
type Event_GetCommand_Call ¶
Event_GetCommand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCommand'
func (*Event_GetCommand_Call) Return ¶
func (_c *Event_GetCommand_Call) Return(_a0 string) *Event_GetCommand_Call
func (*Event_GetCommand_Call) Run ¶
func (_c *Event_GetCommand_Call) Run(run func()) *Event_GetCommand_Call
func (*Event_GetCommand_Call) RunAndReturn ¶
func (_c *Event_GetCommand_Call) RunAndReturn(run func() string) *Event_GetCommand_Call
type Event_GetCron_Call ¶
Event_GetCron_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCron'
func (*Event_GetCron_Call) Return ¶
func (_c *Event_GetCron_Call) Return(_a0 string) *Event_GetCron_Call
func (*Event_GetCron_Call) Run ¶
func (_c *Event_GetCron_Call) Run(run func()) *Event_GetCron_Call
func (*Event_GetCron_Call) RunAndReturn ¶
func (_c *Event_GetCron_Call) RunAndReturn(run func() string) *Event_GetCron_Call
type Event_GetDelayIfStillRunning_Call ¶
Event_GetDelayIfStillRunning_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDelayIfStillRunning'
func (*Event_GetDelayIfStillRunning_Call) Return ¶
func (_c *Event_GetDelayIfStillRunning_Call) Return(_a0 bool) *Event_GetDelayIfStillRunning_Call
func (*Event_GetDelayIfStillRunning_Call) Run ¶
func (_c *Event_GetDelayIfStillRunning_Call) Run(run func()) *Event_GetDelayIfStillRunning_Call
func (*Event_GetDelayIfStillRunning_Call) RunAndReturn ¶
func (_c *Event_GetDelayIfStillRunning_Call) RunAndReturn(run func() bool) *Event_GetDelayIfStillRunning_Call
type Event_GetName_Call ¶
Event_GetName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetName'
func (*Event_GetName_Call) Return ¶
func (_c *Event_GetName_Call) Return(_a0 string) *Event_GetName_Call
func (*Event_GetName_Call) Run ¶
func (_c *Event_GetName_Call) Run(run func()) *Event_GetName_Call
func (*Event_GetName_Call) RunAndReturn ¶
func (_c *Event_GetName_Call) RunAndReturn(run func() string) *Event_GetName_Call
type Event_GetSkipIfStillRunning_Call ¶
Event_GetSkipIfStillRunning_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSkipIfStillRunning'
func (*Event_GetSkipIfStillRunning_Call) Return ¶
func (_c *Event_GetSkipIfStillRunning_Call) Return(_a0 bool) *Event_GetSkipIfStillRunning_Call
func (*Event_GetSkipIfStillRunning_Call) Run ¶
func (_c *Event_GetSkipIfStillRunning_Call) Run(run func()) *Event_GetSkipIfStillRunning_Call
func (*Event_GetSkipIfStillRunning_Call) RunAndReturn ¶
func (_c *Event_GetSkipIfStillRunning_Call) RunAndReturn(run func() bool) *Event_GetSkipIfStillRunning_Call
type Event_HourlyAt_Call ¶
Event_HourlyAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HourlyAt'
func (*Event_HourlyAt_Call) Return ¶
func (_c *Event_HourlyAt_Call) Return(_a0 schedule.Event) *Event_HourlyAt_Call
func (*Event_HourlyAt_Call) Run ¶
func (_c *Event_HourlyAt_Call) Run(run func(offset []string)) *Event_HourlyAt_Call
func (*Event_HourlyAt_Call) RunAndReturn ¶
func (_c *Event_HourlyAt_Call) RunAndReturn(run func([]string) schedule.Event) *Event_HourlyAt_Call
type Event_Hourly_Call ¶
Event_Hourly_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hourly'
func (*Event_Hourly_Call) Return ¶
func (_c *Event_Hourly_Call) Return(_a0 schedule.Event) *Event_Hourly_Call
func (*Event_Hourly_Call) Run ¶
func (_c *Event_Hourly_Call) Run(run func()) *Event_Hourly_Call
func (*Event_Hourly_Call) RunAndReturn ¶
func (_c *Event_Hourly_Call) RunAndReturn(run func() schedule.Event) *Event_Hourly_Call
type Event_IsOnOneServer_Call ¶
Event_IsOnOneServer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsOnOneServer'
func (*Event_IsOnOneServer_Call) Return ¶
func (_c *Event_IsOnOneServer_Call) Return(_a0 bool) *Event_IsOnOneServer_Call
func (*Event_IsOnOneServer_Call) Run ¶
func (_c *Event_IsOnOneServer_Call) Run(run func()) *Event_IsOnOneServer_Call
func (*Event_IsOnOneServer_Call) RunAndReturn ¶
func (_c *Event_IsOnOneServer_Call) RunAndReturn(run func() bool) *Event_IsOnOneServer_Call
type Event_Name_Call ¶
Event_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'
func (*Event_Name_Call) Return ¶
func (_c *Event_Name_Call) Return(_a0 schedule.Event) *Event_Name_Call
func (*Event_Name_Call) Run ¶
func (_c *Event_Name_Call) Run(run func(name string)) *Event_Name_Call
func (*Event_Name_Call) RunAndReturn ¶
func (_c *Event_Name_Call) RunAndReturn(run func(string) schedule.Event) *Event_Name_Call
type Event_OnOneServer_Call ¶
Event_OnOneServer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnOneServer'
func (*Event_OnOneServer_Call) Return ¶
func (_c *Event_OnOneServer_Call) Return(_a0 schedule.Event) *Event_OnOneServer_Call
func (*Event_OnOneServer_Call) Run ¶
func (_c *Event_OnOneServer_Call) Run(run func()) *Event_OnOneServer_Call
func (*Event_OnOneServer_Call) RunAndReturn ¶
func (_c *Event_OnOneServer_Call) RunAndReturn(run func() schedule.Event) *Event_OnOneServer_Call
type Event_SkipIfStillRunning_Call ¶
Event_SkipIfStillRunning_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SkipIfStillRunning'
func (*Event_SkipIfStillRunning_Call) Return ¶
func (_c *Event_SkipIfStillRunning_Call) Return(_a0 schedule.Event) *Event_SkipIfStillRunning_Call
func (*Event_SkipIfStillRunning_Call) Run ¶
func (_c *Event_SkipIfStillRunning_Call) Run(run func()) *Event_SkipIfStillRunning_Call
func (*Event_SkipIfStillRunning_Call) RunAndReturn ¶
func (_c *Event_SkipIfStillRunning_Call) RunAndReturn(run func() schedule.Event) *Event_SkipIfStillRunning_Call
type Schedule ¶
Schedule is an autogenerated mock type for the Schedule type
func NewSchedule ¶
NewSchedule creates a new instance of Schedule. 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 (*Schedule) EXPECT ¶
func (_m *Schedule) EXPECT() *Schedule_Expecter
type Schedule_Call_Call ¶
Schedule_Call_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Call'
func (*Schedule_Call_Call) Return ¶
func (_c *Schedule_Call_Call) Return(_a0 schedule.Event) *Schedule_Call_Call
func (*Schedule_Call_Call) Run ¶
func (_c *Schedule_Call_Call) Run(run func(callback func())) *Schedule_Call_Call
func (*Schedule_Call_Call) RunAndReturn ¶
func (_c *Schedule_Call_Call) RunAndReturn(run func(func()) schedule.Event) *Schedule_Call_Call
type Schedule_Command_Call ¶
Schedule_Command_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Command'
func (*Schedule_Command_Call) Return ¶
func (_c *Schedule_Command_Call) Return(_a0 schedule.Event) *Schedule_Command_Call
func (*Schedule_Command_Call) Run ¶
func (_c *Schedule_Command_Call) Run(run func(command string)) *Schedule_Command_Call
func (*Schedule_Command_Call) RunAndReturn ¶
func (_c *Schedule_Command_Call) RunAndReturn(run func(string) schedule.Event) *Schedule_Command_Call
type Schedule_Expecter ¶
type Schedule_Expecter struct {
// contains filtered or unexported fields
}
func (*Schedule_Expecter) Call ¶
func (_e *Schedule_Expecter) Call(callback interface{}) *Schedule_Call_Call
Call is a helper method to define mock.On call
- callback func()
func (*Schedule_Expecter) Command ¶
func (_e *Schedule_Expecter) Command(command interface{}) *Schedule_Command_Call
Command is a helper method to define mock.On call
- command string
func (*Schedule_Expecter) Register ¶
func (_e *Schedule_Expecter) Register(events interface{}) *Schedule_Register_Call
Register is a helper method to define mock.On call
- events []schedule.Event
func (*Schedule_Expecter) Run ¶
func (_e *Schedule_Expecter) Run() *Schedule_Run_Call
Run is a helper method to define mock.On call
func (*Schedule_Expecter) Shutdown ¶ added in v1.15.0
func (_e *Schedule_Expecter) Shutdown(ctx ...interface{}) *Schedule_Shutdown_Call
Shutdown is a helper method to define mock.On call
- ctx ...context.Context
type Schedule_Register_Call ¶
Schedule_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'
func (*Schedule_Register_Call) Return ¶
func (_c *Schedule_Register_Call) Return() *Schedule_Register_Call
func (*Schedule_Register_Call) Run ¶
func (_c *Schedule_Register_Call) Run(run func(events []schedule.Event)) *Schedule_Register_Call
func (*Schedule_Register_Call) RunAndReturn ¶
func (_c *Schedule_Register_Call) RunAndReturn(run func([]schedule.Event)) *Schedule_Register_Call
type Schedule_Run_Call ¶
Schedule_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*Schedule_Run_Call) Return ¶
func (_c *Schedule_Run_Call) Return() *Schedule_Run_Call
func (*Schedule_Run_Call) Run ¶
func (_c *Schedule_Run_Call) Run(run func()) *Schedule_Run_Call
func (*Schedule_Run_Call) RunAndReturn ¶
func (_c *Schedule_Run_Call) RunAndReturn(run func()) *Schedule_Run_Call
type Schedule_Shutdown_Call ¶ added in v1.15.0
Schedule_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown'
func (*Schedule_Shutdown_Call) Return ¶ added in v1.15.0
func (_c *Schedule_Shutdown_Call) Return(_a0 error) *Schedule_Shutdown_Call
func (*Schedule_Shutdown_Call) Run ¶ added in v1.15.0
func (_c *Schedule_Shutdown_Call) Run(run func(ctx ...context.Context)) *Schedule_Shutdown_Call
func (*Schedule_Shutdown_Call) RunAndReturn ¶ added in v1.15.0
func (_c *Schedule_Shutdown_Call) RunAndReturn(run func(...context.Context) error) *Schedule_Shutdown_Call