schedule

package
v1.16.4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	mock.Mock
}

Event is an autogenerated mock type for the Event type

func NewEvent

func NewEvent(t interface {
	mock.TestingT
	Cleanup(func())
}) *Event

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) At

func (_m *Event) At(_a0 string) schedule.Event

At provides a mock function with given fields: _a0

func (*Event) Cron

func (_m *Event) Cron(expression string) schedule.Event

Cron provides a mock function with given fields: expression

func (*Event) Daily

func (_m *Event) Daily() schedule.Event

Daily provides a mock function with no fields

func (*Event) DailyAt

func (_m *Event) DailyAt(_a0 string) schedule.Event

DailyAt provides a mock function with given fields: _a0

func (*Event) Days added in v1.15.12

func (_m *Event) Days(days ...time.Weekday) schedule.Event

Days provides a mock function with given fields: days

func (*Event) DelayIfStillRunning

func (_m *Event) DelayIfStillRunning() schedule.Event

DelayIfStillRunning provides a mock function with no fields

func (*Event) EXPECT

func (_m *Event) EXPECT() *Event_Expecter

func (*Event) EveryFifteenMinutes

func (_m *Event) EveryFifteenMinutes() schedule.Event

EveryFifteenMinutes provides a mock function with no fields

func (*Event) EveryFifteenSeconds added in v1.15.12

func (_m *Event) EveryFifteenSeconds() schedule.Event

EveryFifteenSeconds provides a mock function with no fields

func (*Event) EveryFiveMinutes

func (_m *Event) EveryFiveMinutes() schedule.Event

EveryFiveMinutes provides a mock function with no fields

func (*Event) EveryFiveSeconds added in v1.15.12

func (_m *Event) EveryFiveSeconds() schedule.Event

EveryFiveSeconds provides a mock function with no fields

func (*Event) EveryFourHours

func (_m *Event) EveryFourHours() schedule.Event

EveryFourHours provides a mock function with no fields

func (*Event) EveryFourMinutes

func (_m *Event) EveryFourMinutes() schedule.Event

EveryFourMinutes provides a mock function with no fields

func (*Event) EveryMinute

func (_m *Event) EveryMinute() schedule.Event

EveryMinute provides a mock function with no fields

func (*Event) EverySecond added in v1.15.12

func (_m *Event) EverySecond() schedule.Event

EverySecond provides a mock function with no fields

func (*Event) EverySixHours

func (_m *Event) EverySixHours() schedule.Event

EverySixHours provides a mock function with no fields

func (*Event) EveryTenMinutes

func (_m *Event) EveryTenMinutes() schedule.Event

EveryTenMinutes provides a mock function with no fields

func (*Event) EveryTenSeconds added in v1.15.12

func (_m *Event) EveryTenSeconds() schedule.Event

EveryTenSeconds provides a mock function with no fields

func (*Event) EveryThirtyMinutes

func (_m *Event) EveryThirtyMinutes() schedule.Event

EveryThirtyMinutes provides a mock function with no fields

func (*Event) EveryThirtySeconds added in v1.15.12

func (_m *Event) EveryThirtySeconds() schedule.Event

EveryThirtySeconds provides a mock function with no fields

func (*Event) EveryThreeHours

func (_m *Event) EveryThreeHours() schedule.Event

EveryThreeHours provides a mock function with no fields

func (*Event) EveryThreeMinutes

func (_m *Event) EveryThreeMinutes() schedule.Event

EveryThreeMinutes provides a mock function with no fields

func (*Event) EveryTwentySeconds added in v1.15.12

func (_m *Event) EveryTwentySeconds() schedule.Event

EveryTwentySeconds provides a mock function with no fields

func (*Event) EveryTwoHours

func (_m *Event) EveryTwoHours() schedule.Event

EveryTwoHours provides a mock function with no fields

func (*Event) EveryTwoMinutes

func (_m *Event) EveryTwoMinutes() schedule.Event

EveryTwoMinutes provides a mock function with no fields

func (*Event) EveryTwoSeconds added in v1.15.12

func (_m *Event) EveryTwoSeconds() schedule.Event

EveryTwoSeconds provides a mock function with no fields

func (*Event) Fridays added in v1.15.12

func (_m *Event) Fridays() schedule.Event

Fridays 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

func (_m *Event) GetCommand() string

GetCommand provides a mock function with no fields

func (*Event) GetCron

func (_m *Event) GetCron() string

GetCron provides a mock function with no fields

func (*Event) GetDelayIfStillRunning

func (_m *Event) GetDelayIfStillRunning() bool

GetDelayIfStillRunning provides a mock function with no fields

func (*Event) GetName

func (_m *Event) GetName() string

GetName provides a mock function with no fields

func (*Event) GetSkipIfStillRunning

func (_m *Event) GetSkipIfStillRunning() bool

GetSkipIfStillRunning provides a mock function with no fields

func (*Event) Hourly

func (_m *Event) Hourly() schedule.Event

Hourly provides a mock function with no fields

func (*Event) HourlyAt

func (_m *Event) HourlyAt(offset []string) schedule.Event

HourlyAt provides a mock function with given fields: offset

func (*Event) IsOnOneServer

func (_m *Event) IsOnOneServer() bool

IsOnOneServer provides a mock function with no fields

func (*Event) Mondays added in v1.15.12

func (_m *Event) Mondays() schedule.Event

Mondays provides a mock function with no fields

func (*Event) Monthly added in v1.15.12

func (_m *Event) Monthly() schedule.Event

Monthly provides a mock function with no fields

func (*Event) Name

func (_m *Event) Name(name string) schedule.Event

Name provides a mock function with given fields: name

func (*Event) OnOneServer

func (_m *Event) OnOneServer() schedule.Event

OnOneServer provides a mock function with no fields

func (*Event) Quarterly added in v1.15.12

func (_m *Event) Quarterly() schedule.Event

Quarterly provides a mock function with no fields

func (*Event) Saturdays added in v1.15.12

func (_m *Event) Saturdays() schedule.Event

Saturdays provides a mock function with no fields

func (*Event) SkipIfStillRunning

func (_m *Event) SkipIfStillRunning() schedule.Event

SkipIfStillRunning provides a mock function with no fields

func (*Event) Sundays added in v1.15.12

func (_m *Event) Sundays() schedule.Event

Sundays provides a mock function with no fields

func (*Event) Thursdays added in v1.15.12

func (_m *Event) Thursdays() schedule.Event

Thursdays provides a mock function with no fields

func (*Event) Tuesdays added in v1.15.12

func (_m *Event) Tuesdays() schedule.Event

Tuesdays provides a mock function with no fields

func (*Event) TwiceDaily added in v1.15.12

func (_m *Event) TwiceDaily(hours ...int) schedule.Event

TwiceDaily provides a mock function with given fields: hours

func (*Event) Wednesdays added in v1.15.12

func (_m *Event) Wednesdays() schedule.Event

Wednesdays provides a mock function with no fields

func (*Event) Weekdays added in v1.15.12

func (_m *Event) Weekdays() schedule.Event

Weekdays provides a mock function with no fields

func (*Event) Weekends added in v1.15.12

func (_m *Event) Weekends() schedule.Event

Weekends provides a mock function with no fields

func (*Event) Weekly added in v1.15.12

func (_m *Event) Weekly() schedule.Event

Weekly provides a mock function with no fields

func (*Event) Yearly added in v1.15.12

func (_m *Event) Yearly() schedule.Event

Yearly provides a mock function with no fields

type Event_At_Call

type Event_At_Call struct {
	*mock.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(_a0 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

type Event_Cron_Call struct {
	*mock.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

type Event_DailyAt_Call struct {
	*mock.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 (*Event_DailyAt_Call) Run

func (_c *Event_DailyAt_Call) Run(run func(_a0 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

type Event_Daily_Call struct {
	*mock.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 (*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_Days_Call added in v1.15.12

type Event_Days_Call struct {
	*mock.Call
}

Event_Days_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Days'

func (*Event_Days_Call) Return added in v1.15.12

func (_c *Event_Days_Call) Return(_a0 schedule.Event) *Event_Days_Call

func (*Event_Days_Call) Run added in v1.15.12

func (_c *Event_Days_Call) Run(run func(days ...time.Weekday)) *Event_Days_Call

func (*Event_Days_Call) RunAndReturn added in v1.15.12

func (_c *Event_Days_Call) RunAndReturn(run func(...time.Weekday) schedule.Event) *Event_Days_Call

type Event_DelayIfStillRunning_Call

type Event_DelayIfStillRunning_Call struct {
	*mock.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 (*Event_DelayIfStillRunning_Call) Run

func (*Event_DelayIfStillRunning_Call) RunAndReturn

type Event_EveryFifteenMinutes_Call

type Event_EveryFifteenMinutes_Call struct {
	*mock.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 (*Event_EveryFifteenMinutes_Call) Run

func (*Event_EveryFifteenMinutes_Call) RunAndReturn

type Event_EveryFifteenSeconds_Call added in v1.15.12

type Event_EveryFifteenSeconds_Call struct {
	*mock.Call
}

Event_EveryFifteenSeconds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EveryFifteenSeconds'

func (*Event_EveryFifteenSeconds_Call) Return added in v1.15.12

func (*Event_EveryFifteenSeconds_Call) Run added in v1.15.12

func (*Event_EveryFifteenSeconds_Call) RunAndReturn added in v1.15.12

type Event_EveryFiveMinutes_Call

type Event_EveryFiveMinutes_Call struct {
	*mock.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 (*Event_EveryFiveMinutes_Call) Run

func (*Event_EveryFiveMinutes_Call) RunAndReturn

type Event_EveryFiveSeconds_Call added in v1.15.12

type Event_EveryFiveSeconds_Call struct {
	*mock.Call
}

Event_EveryFiveSeconds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EveryFiveSeconds'

func (*Event_EveryFiveSeconds_Call) Return added in v1.15.12

func (*Event_EveryFiveSeconds_Call) Run added in v1.15.12

func (*Event_EveryFiveSeconds_Call) RunAndReturn added in v1.15.12

type Event_EveryFourHours_Call

type Event_EveryFourHours_Call struct {
	*mock.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 (*Event_EveryFourHours_Call) Run

func (*Event_EveryFourHours_Call) RunAndReturn

func (_c *Event_EveryFourHours_Call) RunAndReturn(run func() schedule.Event) *Event_EveryFourHours_Call

type Event_EveryFourMinutes_Call

type Event_EveryFourMinutes_Call struct {
	*mock.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 (*Event_EveryFourMinutes_Call) Run

func (*Event_EveryFourMinutes_Call) RunAndReturn

type Event_EveryMinute_Call

type Event_EveryMinute_Call struct {
	*mock.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 (*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_EverySecond_Call added in v1.15.12

type Event_EverySecond_Call struct {
	*mock.Call
}

Event_EverySecond_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EverySecond'

func (*Event_EverySecond_Call) Return added in v1.15.12

func (*Event_EverySecond_Call) Run added in v1.15.12

func (_c *Event_EverySecond_Call) Run(run func()) *Event_EverySecond_Call

func (*Event_EverySecond_Call) RunAndReturn added in v1.15.12

func (_c *Event_EverySecond_Call) RunAndReturn(run func() schedule.Event) *Event_EverySecond_Call

type Event_EverySixHours_Call

type Event_EverySixHours_Call struct {
	*mock.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 (*Event_EverySixHours_Call) Run

func (*Event_EverySixHours_Call) RunAndReturn

func (_c *Event_EverySixHours_Call) RunAndReturn(run func() schedule.Event) *Event_EverySixHours_Call

type Event_EveryTenMinutes_Call

type Event_EveryTenMinutes_Call struct {
	*mock.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 (*Event_EveryTenMinutes_Call) Run

func (*Event_EveryTenMinutes_Call) RunAndReturn

type Event_EveryTenSeconds_Call added in v1.15.12

type Event_EveryTenSeconds_Call struct {
	*mock.Call
}

Event_EveryTenSeconds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EveryTenSeconds'

func (*Event_EveryTenSeconds_Call) Return added in v1.15.12

func (*Event_EveryTenSeconds_Call) Run added in v1.15.12

func (*Event_EveryTenSeconds_Call) RunAndReturn added in v1.15.12

type Event_EveryThirtyMinutes_Call

type Event_EveryThirtyMinutes_Call struct {
	*mock.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 (*Event_EveryThirtyMinutes_Call) Run

func (*Event_EveryThirtyMinutes_Call) RunAndReturn

type Event_EveryThirtySeconds_Call added in v1.15.12

type Event_EveryThirtySeconds_Call struct {
	*mock.Call
}

Event_EveryThirtySeconds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EveryThirtySeconds'

func (*Event_EveryThirtySeconds_Call) Return added in v1.15.12

func (*Event_EveryThirtySeconds_Call) Run added in v1.15.12

func (*Event_EveryThirtySeconds_Call) RunAndReturn added in v1.15.12

type Event_EveryThreeHours_Call

type Event_EveryThreeHours_Call struct {
	*mock.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 (*Event_EveryThreeHours_Call) Run

func (*Event_EveryThreeHours_Call) RunAndReturn

type Event_EveryThreeMinutes_Call

type Event_EveryThreeMinutes_Call struct {
	*mock.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 (*Event_EveryThreeMinutes_Call) Run

func (*Event_EveryThreeMinutes_Call) RunAndReturn

type Event_EveryTwentySeconds_Call added in v1.15.12

type Event_EveryTwentySeconds_Call struct {
	*mock.Call
}

Event_EveryTwentySeconds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EveryTwentySeconds'

func (*Event_EveryTwentySeconds_Call) Return added in v1.15.12

func (*Event_EveryTwentySeconds_Call) Run added in v1.15.12

func (*Event_EveryTwentySeconds_Call) RunAndReturn added in v1.15.12

type Event_EveryTwoHours_Call

type Event_EveryTwoHours_Call struct {
	*mock.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 (*Event_EveryTwoHours_Call) Run

func (*Event_EveryTwoHours_Call) RunAndReturn

func (_c *Event_EveryTwoHours_Call) RunAndReturn(run func() schedule.Event) *Event_EveryTwoHours_Call

type Event_EveryTwoMinutes_Call

type Event_EveryTwoMinutes_Call struct {
	*mock.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 (*Event_EveryTwoMinutes_Call) Run

func (*Event_EveryTwoMinutes_Call) RunAndReturn

type Event_EveryTwoSeconds_Call added in v1.15.12

type Event_EveryTwoSeconds_Call struct {
	*mock.Call
}

Event_EveryTwoSeconds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EveryTwoSeconds'

func (*Event_EveryTwoSeconds_Call) Return added in v1.15.12

func (*Event_EveryTwoSeconds_Call) Run added in v1.15.12

func (*Event_EveryTwoSeconds_Call) RunAndReturn added in v1.15.12

type Event_Expecter

type Event_Expecter struct {
	// contains filtered or unexported fields
}

func (*Event_Expecter) At

func (_e *Event_Expecter) At(_a0 interface{}) *Event_At_Call

At is a helper method to define mock.On call

  • _a0 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(_a0 interface{}) *Event_DailyAt_Call

DailyAt is a helper method to define mock.On call

  • _a0 string

func (*Event_Expecter) Days added in v1.15.12

func (_e *Event_Expecter) Days(days ...interface{}) *Event_Days_Call

Days is a helper method to define mock.On call

  • days ...time.Weekday

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) EveryFifteenSeconds added in v1.15.12

func (_e *Event_Expecter) EveryFifteenSeconds() *Event_EveryFifteenSeconds_Call

EveryFifteenSeconds 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) EveryFiveSeconds added in v1.15.12

func (_e *Event_Expecter) EveryFiveSeconds() *Event_EveryFiveSeconds_Call

EveryFiveSeconds 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) EverySecond added in v1.15.12

func (_e *Event_Expecter) EverySecond() *Event_EverySecond_Call

EverySecond 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) EveryTenSeconds added in v1.15.12

func (_e *Event_Expecter) EveryTenSeconds() *Event_EveryTenSeconds_Call

EveryTenSeconds 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) EveryThirtySeconds added in v1.15.12

func (_e *Event_Expecter) EveryThirtySeconds() *Event_EveryThirtySeconds_Call

EveryThirtySeconds 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) EveryTwentySeconds added in v1.15.12

func (_e *Event_Expecter) EveryTwentySeconds() *Event_EveryTwentySeconds_Call

EveryTwentySeconds 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) EveryTwoSeconds added in v1.15.12

func (_e *Event_Expecter) EveryTwoSeconds() *Event_EveryTwoSeconds_Call

EveryTwoSeconds is a helper method to define mock.On call

func (*Event_Expecter) Fridays added in v1.15.12

func (_e *Event_Expecter) Fridays() *Event_Fridays_Call

Fridays 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) Mondays added in v1.15.12

func (_e *Event_Expecter) Mondays() *Event_Mondays_Call

Mondays is a helper method to define mock.On call

func (*Event_Expecter) Monthly added in v1.15.12

func (_e *Event_Expecter) Monthly() *Event_Monthly_Call

Monthly 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) Quarterly added in v1.15.12

func (_e *Event_Expecter) Quarterly() *Event_Quarterly_Call

Quarterly is a helper method to define mock.On call

func (*Event_Expecter) Saturdays added in v1.15.12

func (_e *Event_Expecter) Saturdays() *Event_Saturdays_Call

Saturdays 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

func (*Event_Expecter) Sundays added in v1.15.12

func (_e *Event_Expecter) Sundays() *Event_Sundays_Call

Sundays is a helper method to define mock.On call

func (*Event_Expecter) Thursdays added in v1.15.12

func (_e *Event_Expecter) Thursdays() *Event_Thursdays_Call

Thursdays is a helper method to define mock.On call

func (*Event_Expecter) Tuesdays added in v1.15.12

func (_e *Event_Expecter) Tuesdays() *Event_Tuesdays_Call

Tuesdays is a helper method to define mock.On call

func (*Event_Expecter) TwiceDaily added in v1.15.12

func (_e *Event_Expecter) TwiceDaily(hours ...interface{}) *Event_TwiceDaily_Call

TwiceDaily is a helper method to define mock.On call

  • hours ...int

func (*Event_Expecter) Wednesdays added in v1.15.12

func (_e *Event_Expecter) Wednesdays() *Event_Wednesdays_Call

Wednesdays is a helper method to define mock.On call

func (*Event_Expecter) Weekdays added in v1.15.12

func (_e *Event_Expecter) Weekdays() *Event_Weekdays_Call

Weekdays is a helper method to define mock.On call

func (*Event_Expecter) Weekends added in v1.15.12

func (_e *Event_Expecter) Weekends() *Event_Weekends_Call

Weekends is a helper method to define mock.On call

func (*Event_Expecter) Weekly added in v1.15.12

func (_e *Event_Expecter) Weekly() *Event_Weekly_Call

Weekly is a helper method to define mock.On call

func (*Event_Expecter) Yearly added in v1.15.12

func (_e *Event_Expecter) Yearly() *Event_Yearly_Call

Yearly is a helper method to define mock.On call

type Event_Fridays_Call added in v1.15.12

type Event_Fridays_Call struct {
	*mock.Call
}

Event_Fridays_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Fridays'

func (*Event_Fridays_Call) Return added in v1.15.12

func (*Event_Fridays_Call) Run added in v1.15.12

func (_c *Event_Fridays_Call) Run(run func()) *Event_Fridays_Call

func (*Event_Fridays_Call) RunAndReturn added in v1.15.12

func (_c *Event_Fridays_Call) RunAndReturn(run func() schedule.Event) *Event_Fridays_Call

type Event_GetCallback_Call

type Event_GetCallback_Call struct {
	*mock.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

type Event_GetCommand_Call struct {
	*mock.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 (*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

type Event_GetCron_Call struct {
	*mock.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

type Event_GetDelayIfStillRunning_Call struct {
	*mock.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 (*Event_GetDelayIfStillRunning_Call) Run

func (*Event_GetDelayIfStillRunning_Call) RunAndReturn

type Event_GetName_Call

type Event_GetName_Call struct {
	*mock.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

type Event_GetSkipIfStillRunning_Call struct {
	*mock.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 (*Event_GetSkipIfStillRunning_Call) Run

func (*Event_GetSkipIfStillRunning_Call) RunAndReturn

type Event_HourlyAt_Call

type Event_HourlyAt_Call struct {
	*mock.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 (*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

type Event_Hourly_Call struct {
	*mock.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 (*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

type Event_IsOnOneServer_Call struct {
	*mock.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 (*Event_IsOnOneServer_Call) Run

func (*Event_IsOnOneServer_Call) RunAndReturn

func (_c *Event_IsOnOneServer_Call) RunAndReturn(run func() bool) *Event_IsOnOneServer_Call

type Event_Mondays_Call added in v1.15.12

type Event_Mondays_Call struct {
	*mock.Call
}

Event_Mondays_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Mondays'

func (*Event_Mondays_Call) Return added in v1.15.12

func (*Event_Mondays_Call) Run added in v1.15.12

func (_c *Event_Mondays_Call) Run(run func()) *Event_Mondays_Call

func (*Event_Mondays_Call) RunAndReturn added in v1.15.12

func (_c *Event_Mondays_Call) RunAndReturn(run func() schedule.Event) *Event_Mondays_Call

type Event_Monthly_Call added in v1.15.12

type Event_Monthly_Call struct {
	*mock.Call
}

Event_Monthly_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Monthly'

func (*Event_Monthly_Call) Return added in v1.15.12

func (*Event_Monthly_Call) Run added in v1.15.12

func (_c *Event_Monthly_Call) Run(run func()) *Event_Monthly_Call

func (*Event_Monthly_Call) RunAndReturn added in v1.15.12

func (_c *Event_Monthly_Call) RunAndReturn(run func() schedule.Event) *Event_Monthly_Call

type Event_Name_Call

type Event_Name_Call struct {
	*mock.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

type Event_OnOneServer_Call struct {
	*mock.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 (*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_Quarterly_Call added in v1.15.12

type Event_Quarterly_Call struct {
	*mock.Call
}

Event_Quarterly_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Quarterly'

func (*Event_Quarterly_Call) Return added in v1.15.12

func (*Event_Quarterly_Call) Run added in v1.15.12

func (_c *Event_Quarterly_Call) Run(run func()) *Event_Quarterly_Call

func (*Event_Quarterly_Call) RunAndReturn added in v1.15.12

func (_c *Event_Quarterly_Call) RunAndReturn(run func() schedule.Event) *Event_Quarterly_Call

type Event_Saturdays_Call added in v1.15.12

type Event_Saturdays_Call struct {
	*mock.Call
}

Event_Saturdays_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Saturdays'

func (*Event_Saturdays_Call) Return added in v1.15.12

func (*Event_Saturdays_Call) Run added in v1.15.12

func (_c *Event_Saturdays_Call) Run(run func()) *Event_Saturdays_Call

func (*Event_Saturdays_Call) RunAndReturn added in v1.15.12

func (_c *Event_Saturdays_Call) RunAndReturn(run func() schedule.Event) *Event_Saturdays_Call

type Event_SkipIfStillRunning_Call

type Event_SkipIfStillRunning_Call struct {
	*mock.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 (*Event_SkipIfStillRunning_Call) Run

func (*Event_SkipIfStillRunning_Call) RunAndReturn

type Event_Sundays_Call added in v1.15.12

type Event_Sundays_Call struct {
	*mock.Call
}

Event_Sundays_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sundays'

func (*Event_Sundays_Call) Return added in v1.15.12

func (*Event_Sundays_Call) Run added in v1.15.12

func (_c *Event_Sundays_Call) Run(run func()) *Event_Sundays_Call

func (*Event_Sundays_Call) RunAndReturn added in v1.15.12

func (_c *Event_Sundays_Call) RunAndReturn(run func() schedule.Event) *Event_Sundays_Call

type Event_Thursdays_Call added in v1.15.12

type Event_Thursdays_Call struct {
	*mock.Call
}

Event_Thursdays_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Thursdays'

func (*Event_Thursdays_Call) Return added in v1.15.12

func (*Event_Thursdays_Call) Run added in v1.15.12

func (_c *Event_Thursdays_Call) Run(run func()) *Event_Thursdays_Call

func (*Event_Thursdays_Call) RunAndReturn added in v1.15.12

func (_c *Event_Thursdays_Call) RunAndReturn(run func() schedule.Event) *Event_Thursdays_Call

type Event_Tuesdays_Call added in v1.15.12

type Event_Tuesdays_Call struct {
	*mock.Call
}

Event_Tuesdays_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Tuesdays'

func (*Event_Tuesdays_Call) Return added in v1.15.12

func (*Event_Tuesdays_Call) Run added in v1.15.12

func (_c *Event_Tuesdays_Call) Run(run func()) *Event_Tuesdays_Call

func (*Event_Tuesdays_Call) RunAndReturn added in v1.15.12

func (_c *Event_Tuesdays_Call) RunAndReturn(run func() schedule.Event) *Event_Tuesdays_Call

type Event_TwiceDaily_Call added in v1.15.12

type Event_TwiceDaily_Call struct {
	*mock.Call
}

Event_TwiceDaily_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TwiceDaily'

func (*Event_TwiceDaily_Call) Return added in v1.15.12

func (*Event_TwiceDaily_Call) Run added in v1.15.12

func (_c *Event_TwiceDaily_Call) Run(run func(hours ...int)) *Event_TwiceDaily_Call

func (*Event_TwiceDaily_Call) RunAndReturn added in v1.15.12

func (_c *Event_TwiceDaily_Call) RunAndReturn(run func(...int) schedule.Event) *Event_TwiceDaily_Call

type Event_Wednesdays_Call added in v1.15.12

type Event_Wednesdays_Call struct {
	*mock.Call
}

Event_Wednesdays_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Wednesdays'

func (*Event_Wednesdays_Call) Return added in v1.15.12

func (*Event_Wednesdays_Call) Run added in v1.15.12

func (_c *Event_Wednesdays_Call) Run(run func()) *Event_Wednesdays_Call

func (*Event_Wednesdays_Call) RunAndReturn added in v1.15.12

func (_c *Event_Wednesdays_Call) RunAndReturn(run func() schedule.Event) *Event_Wednesdays_Call

type Event_Weekdays_Call added in v1.15.12

type Event_Weekdays_Call struct {
	*mock.Call
}

Event_Weekdays_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Weekdays'

func (*Event_Weekdays_Call) Return added in v1.15.12

func (*Event_Weekdays_Call) Run added in v1.15.12

func (_c *Event_Weekdays_Call) Run(run func()) *Event_Weekdays_Call

func (*Event_Weekdays_Call) RunAndReturn added in v1.15.12

func (_c *Event_Weekdays_Call) RunAndReturn(run func() schedule.Event) *Event_Weekdays_Call

type Event_Weekends_Call added in v1.15.12

type Event_Weekends_Call struct {
	*mock.Call
}

Event_Weekends_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Weekends'

func (*Event_Weekends_Call) Return added in v1.15.12

func (*Event_Weekends_Call) Run added in v1.15.12

func (_c *Event_Weekends_Call) Run(run func()) *Event_Weekends_Call

func (*Event_Weekends_Call) RunAndReturn added in v1.15.12

func (_c *Event_Weekends_Call) RunAndReturn(run func() schedule.Event) *Event_Weekends_Call

type Event_Weekly_Call added in v1.15.12

type Event_Weekly_Call struct {
	*mock.Call
}

Event_Weekly_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Weekly'

func (*Event_Weekly_Call) Return added in v1.15.12

func (*Event_Weekly_Call) Run added in v1.15.12

func (_c *Event_Weekly_Call) Run(run func()) *Event_Weekly_Call

func (*Event_Weekly_Call) RunAndReturn added in v1.15.12

func (_c *Event_Weekly_Call) RunAndReturn(run func() schedule.Event) *Event_Weekly_Call

type Event_Yearly_Call added in v1.15.12

type Event_Yearly_Call struct {
	*mock.Call
}

Event_Yearly_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Yearly'

func (*Event_Yearly_Call) Return added in v1.15.12

func (*Event_Yearly_Call) Run added in v1.15.12

func (_c *Event_Yearly_Call) Run(run func()) *Event_Yearly_Call

func (*Event_Yearly_Call) RunAndReturn added in v1.15.12

func (_c *Event_Yearly_Call) RunAndReturn(run func() schedule.Event) *Event_Yearly_Call

type Schedule

type Schedule struct {
	mock.Mock
}

Schedule is an autogenerated mock type for the Schedule type

func NewSchedule

func NewSchedule(t interface {
	mock.TestingT
	Cleanup(func())
}) *Schedule

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) Call

func (_m *Schedule) Call(callback func()) schedule.Event

Call provides a mock function with given fields: callback

func (*Schedule) Command

func (_m *Schedule) Command(command string) schedule.Event

Command provides a mock function with given fields: command

func (*Schedule) EXPECT

func (_m *Schedule) EXPECT() *Schedule_Expecter

func (*Schedule) Events added in v1.15.12

func (_m *Schedule) Events() []schedule.Event

Events provides a mock function with no fields

func (*Schedule) Register

func (_m *Schedule) Register(events []schedule.Event)

Register provides a mock function with given fields: events

func (*Schedule) Run

func (_m *Schedule) Run()

Run provides a mock function with no fields

func (*Schedule) Shutdown added in v1.15.0

func (_m *Schedule) Shutdown(ctx ...context.Context) error

Shutdown provides a mock function with given fields: ctx

type Schedule_Call_Call

type Schedule_Call_Call struct {
	*mock.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 (*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

type Schedule_Command_Call struct {
	*mock.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 (*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_Events_Call added in v1.15.12

type Schedule_Events_Call struct {
	*mock.Call
}

Schedule_Events_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Events'

func (*Schedule_Events_Call) Return added in v1.15.12

func (*Schedule_Events_Call) Run added in v1.15.12

func (_c *Schedule_Events_Call) Run(run func()) *Schedule_Events_Call

func (*Schedule_Events_Call) RunAndReturn added in v1.15.12

func (_c *Schedule_Events_Call) RunAndReturn(run func() []schedule.Event) *Schedule_Events_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) Events added in v1.15.12

Events is a helper method to define mock.On call

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

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

type Schedule_Register_Call struct {
	*mock.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 (*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

type Schedule_Run_Call struct {
	*mock.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

type Schedule_Shutdown_Call struct {
	*mock.Call
}

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 (*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

Jump to

Keyboard shortcuts

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