mocks

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestWorker

type TestWorker struct {
	OnEventCalls  int
	ShutdownCalls int
}

func (*TestWorker) IsActive

func (worker *TestWorker) IsActive() bool

func (*TestWorker) OnEvent

func (worker *TestWorker) OnEvent(event *models.Event)

func (*TestWorker) SetUp

func (worker *TestWorker) SetUp()

func (*TestWorker) Shutdown

func (worker *TestWorker) Shutdown()

type TestWorkerFactory

type TestWorkerFactory struct {
	Worker TestWorker
}

func (*TestWorkerFactory) Generate

func (factory *TestWorkerFactory) Generate() []worker.EventPoolWorker

Jump to

Keyboard shortcuts

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