scheduler

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager

func NewManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manager

NewManager creates a new instance of Manager. 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 (*Manager) EXPECT

func (_m *Manager) EXPECT() *Manager_Expecter

func (*Manager) Init

func (_m *Manager) Init() error

Init provides a mock function with given fields:

func (*Manager) MustInit

func (_m *Manager) MustInit() scheduler.Manager

MustInit provides a mock function with given fields:

func (*Manager) StartAsync

func (_m *Manager) StartAsync()

StartAsync provides a mock function with given fields:

func (*Manager) StartBlocking

func (_m *Manager) StartBlocking()

StartBlocking provides a mock function with given fields:

func (*Manager) WithSupportSeconds

func (_m *Manager) WithSupportSeconds() scheduler.Manager

WithSupportSeconds provides a mock function with given fields:

func (*Manager) WithTasks

func (_m *Manager) WithTasks(tasks ...func()) scheduler.Manager

WithTasks provides a mock function with given fields: tasks

func (*Manager) WithTimeZone

func (_m *Manager) WithTimeZone(zone *time.Location) scheduler.Manager

WithTimeZone provides a mock function with given fields: zone

type Manager_Expecter

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

func (*Manager_Expecter) Init

func (_e *Manager_Expecter) Init() *Manager_Init_Call

Init is a helper method to define mock.On call

func (*Manager_Expecter) MustInit

func (_e *Manager_Expecter) MustInit() *Manager_MustInit_Call

MustInit is a helper method to define mock.On call

func (*Manager_Expecter) StartAsync

func (_e *Manager_Expecter) StartAsync() *Manager_StartAsync_Call

StartAsync is a helper method to define mock.On call

func (*Manager_Expecter) StartBlocking

func (_e *Manager_Expecter) StartBlocking() *Manager_StartBlocking_Call

StartBlocking is a helper method to define mock.On call

func (*Manager_Expecter) WithSupportSeconds

func (_e *Manager_Expecter) WithSupportSeconds() *Manager_WithSupportSeconds_Call

WithSupportSeconds is a helper method to define mock.On call

func (*Manager_Expecter) WithTasks

func (_e *Manager_Expecter) WithTasks(tasks ...interface{}) *Manager_WithTasks_Call

WithTasks is a helper method to define mock.On call

  • tasks ...func()

func (*Manager_Expecter) WithTimeZone

func (_e *Manager_Expecter) WithTimeZone(zone interface{}) *Manager_WithTimeZone_Call

WithTimeZone is a helper method to define mock.On call

  • zone *time.Location

type Manager_Init_Call

type Manager_Init_Call struct {
	*mock.Call
}

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

func (*Manager_Init_Call) Return

func (_c *Manager_Init_Call) Return(_a0 error) *Manager_Init_Call

func (*Manager_Init_Call) Run

func (_c *Manager_Init_Call) Run(run func()) *Manager_Init_Call

func (*Manager_Init_Call) RunAndReturn

func (_c *Manager_Init_Call) RunAndReturn(run func() error) *Manager_Init_Call

type Manager_MustInit_Call

type Manager_MustInit_Call struct {
	*mock.Call
}

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

func (*Manager_MustInit_Call) Return

func (*Manager_MustInit_Call) Run

func (_c *Manager_MustInit_Call) Run(run func()) *Manager_MustInit_Call

func (*Manager_MustInit_Call) RunAndReturn

func (_c *Manager_MustInit_Call) RunAndReturn(run func() scheduler.Manager) *Manager_MustInit_Call

type Manager_StartAsync_Call

type Manager_StartAsync_Call struct {
	*mock.Call
}

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

func (*Manager_StartAsync_Call) Return

func (*Manager_StartAsync_Call) Run

func (_c *Manager_StartAsync_Call) Run(run func()) *Manager_StartAsync_Call

func (*Manager_StartAsync_Call) RunAndReturn

func (_c *Manager_StartAsync_Call) RunAndReturn(run func()) *Manager_StartAsync_Call

type Manager_StartBlocking_Call

type Manager_StartBlocking_Call struct {
	*mock.Call
}

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

func (*Manager_StartBlocking_Call) Return

func (*Manager_StartBlocking_Call) Run

func (*Manager_StartBlocking_Call) RunAndReturn

func (_c *Manager_StartBlocking_Call) RunAndReturn(run func()) *Manager_StartBlocking_Call

type Manager_WithSupportSeconds_Call

type Manager_WithSupportSeconds_Call struct {
	*mock.Call
}

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

func (*Manager_WithSupportSeconds_Call) Return

func (*Manager_WithSupportSeconds_Call) Run

func (*Manager_WithSupportSeconds_Call) RunAndReturn

type Manager_WithTasks_Call

type Manager_WithTasks_Call struct {
	*mock.Call
}

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

func (*Manager_WithTasks_Call) Return

func (*Manager_WithTasks_Call) Run

func (_c *Manager_WithTasks_Call) Run(run func(tasks ...func())) *Manager_WithTasks_Call

func (*Manager_WithTasks_Call) RunAndReturn

func (_c *Manager_WithTasks_Call) RunAndReturn(run func(...func()) scheduler.Manager) *Manager_WithTasks_Call

type Manager_WithTimeZone_Call

type Manager_WithTimeZone_Call struct {
	*mock.Call
}

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

func (*Manager_WithTimeZone_Call) Return

func (*Manager_WithTimeZone_Call) Run

func (*Manager_WithTimeZone_Call) RunAndReturn

Jump to

Keyboard shortcuts

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