scheduler

package
v1.11.4-rc.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: BSD-3-Clause Imports: 6 Imported by: 3

Documentation

Overview

Package scheduler is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockScheduler added in v1.10.18

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

MockScheduler is a mock of Scheduler interface.

func NewMockScheduler added in v1.10.18

func NewMockScheduler(ctrl *gomock.Controller) *MockScheduler

NewMockScheduler creates a new mock instance.

func (*MockScheduler) Close added in v1.10.18

func (m *MockScheduler) Close()

Close mocks base method.

func (*MockScheduler) Dispatch added in v1.10.18

func (m *MockScheduler) Dispatch(arg0 time.Time)

Dispatch mocks base method.

func (*MockScheduler) EXPECT added in v1.10.18

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockScheduler) SetBuildBlockTime added in v1.10.18

func (m *MockScheduler) SetBuildBlockTime(arg0 time.Time)

SetBuildBlockTime mocks base method.

type MockSchedulerMockRecorder added in v1.10.18

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

MockSchedulerMockRecorder is the mock recorder for MockScheduler.

func (*MockSchedulerMockRecorder) Close added in v1.10.18

func (mr *MockSchedulerMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockSchedulerMockRecorder) Dispatch added in v1.10.18

func (mr *MockSchedulerMockRecorder) Dispatch(arg0 any) *gomock.Call

Dispatch indicates an expected call of Dispatch.

func (*MockSchedulerMockRecorder) SetBuildBlockTime added in v1.10.18

func (mr *MockSchedulerMockRecorder) SetBuildBlockTime(arg0 any) *gomock.Call

SetBuildBlockTime indicates an expected call of SetBuildBlockTime.

type Scheduler

type Scheduler interface {
	Dispatch(startTime time.Time)

	// Client must guarantee that [SetBuildBlockTime]
	// is never called after [Close]
	SetBuildBlockTime(t time.Time)
	Close()
}

func New

func New(log logging.Logger, toEngine chan<- common.Message) (Scheduler, chan<- common.Message)

Jump to

Keyboard shortcuts

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