mocks

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Mock implementation of a WorkflowExecutor for use in tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockEventScheduler

func NewMockEventScheduler() interfaces.EventScheduler

Types

type AddScheduleFunc

type AddScheduleFunc func(ctx context.Context, input interfaces.AddScheduleInput) error

type MockEventScheduler

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

func (*MockEventScheduler) AddSchedule

func (*MockEventScheduler) RemoveSchedule

func (s *MockEventScheduler) RemoveSchedule(ctx context.Context, input interfaces.RemoveScheduleInput) error

func (*MockEventScheduler) SetAddScheduleFunc

func (s *MockEventScheduler) SetAddScheduleFunc(addScheduleFunc AddScheduleFunc)

func (*MockEventScheduler) SetRemoveScheduleFunc

func (s *MockEventScheduler) SetRemoveScheduleFunc(removeScheduleFunc RemoveScheduleFunc)

type MockWorkflowExecutor

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

func (*MockWorkflowExecutor) Run

func (e *MockWorkflowExecutor) Run()

func (*MockWorkflowExecutor) SetRunFunc

func (e *MockWorkflowExecutor) SetRunFunc(runFunc func())

func (*MockWorkflowExecutor) SetStopFunc

func (e *MockWorkflowExecutor) SetStopFunc(stopFunc func() error)

func (*MockWorkflowExecutor) Stop

func (e *MockWorkflowExecutor) Stop() error

type RemoveScheduleFunc

type RemoveScheduleFunc func(ctx context.Context, input interfaces.RemoveScheduleInput) error

Jump to

Keyboard shortcuts

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