scheduler

package
v1.11.5-alpha Latest Latest
Warning

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

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

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

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

MockScheduler is a mock of Scheduler interface.

func NewMockScheduler

func NewMockScheduler(ctrl *gomock.Controller) *MockScheduler

NewMockScheduler creates a new mock instance.

func (*MockScheduler) Close

func (m *MockScheduler) Close()

Close mocks base method.

func (*MockScheduler) Dispatch

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

Dispatch mocks base method.

func (*MockScheduler) EXPECT

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

func (*MockScheduler) SetBuildBlockTime

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

SetBuildBlockTime mocks base method.

type MockSchedulerMockRecorder

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

MockSchedulerMockRecorder is the mock recorder for MockScheduler.

func (*MockSchedulerMockRecorder) Close

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

Close indicates an expected call of Close.

func (*MockSchedulerMockRecorder) Dispatch

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

Dispatch indicates an expected call of Dispatch.

func (*MockSchedulerMockRecorder) SetBuildBlockTime

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