virtual

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultHandlersFactory

type DefaultHandlersFactory struct {
	handlers.FactoryMeta
}

func (DefaultHandlersFactory) Classify

type Dispatcher

type Dispatcher struct {
	FlowDispatcher beat.Dispatcher

	Conveyor       *conveyor.PulseConveyor
	ConveyorWorker insconveyor.ConveyorWorker
	MachineLogger  smachine.SlotMachineLogger

	// CycleFn is called after every scan cycle done by conveyor worker
	CycleFn conveyor.PulseConveyorCycleFunc

	// Components
	Runner                runner.Service
	MessageSender         messagesender.Service
	AuthenticationService authentication.Service
	Affinity              affinity.Helper
	MemoryCache           memorycache.Service
	PlatformScheme        crypto.PlatformScheme

	EventlessSleep            time.Duration
	FactoryLogContextOverride context.Context

	MaxRunners int
	// contains filtered or unexported fields
}

func NewDispatcher

func NewDispatcher() *Dispatcher

func (*Dispatcher) AddInput

func (lr *Dispatcher) AddInput(ctx context.Context, pulse pulse.Number, msg interface{}) error

func (*Dispatcher) AddInputExt

func (lr *Dispatcher) AddInputExt(pulse pulse.Number, msg interface{}, createDefaults smachine.CreateDefaultValues) error

func (*Dispatcher) Init

func (lr *Dispatcher) Init(ctx context.Context) error

func (*Dispatcher) Start

func (lr *Dispatcher) Start(_ context.Context) error

func (*Dispatcher) Stop

func (lr *Dispatcher) Stop(_ context.Context) error

Jump to

Keyboard shortcuts

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