handler

package
v0.1.0-beta.202309251253 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventHandler

type EventHandler struct {
	// Event handlers can only send commands, they are not even permitted access
	// to the EventBus.
	CommandBus *cqrs.CommandBus
}

type Failed

type Failed EventHandler

func (Failed) Handle

func (h Failed) Handle(ctx context.Context, ei interface{}) error

func (Failed) HandlerName

func (h Failed) HandlerName() string

func (Failed) NewEvent

func (Failed) NewEvent() interface{}

type Loaded

type Loaded EventHandler

func (Loaded) Handle

func (h Loaded) Handle(ctx context.Context, ei interface{}) error

func (Loaded) HandlerName

func (h Loaded) HandlerName() string

func (Loaded) NewEvent

func (Loaded) NewEvent() interface{}

type PipelineCanceled

type PipelineCanceled EventHandler

func (PipelineCanceled) Handle

func (h PipelineCanceled) Handle(ctx context.Context, ei interface{}) error

func (PipelineCanceled) HandlerName

func (h PipelineCanceled) HandlerName() string

func (PipelineCanceled) NewEvent

func (PipelineCanceled) NewEvent() interface{}

type PipelineFailed

type PipelineFailed EventHandler

func (PipelineFailed) Handle

func (h PipelineFailed) Handle(ctx context.Context, ei interface{}) error

func (PipelineFailed) HandlerName

func (h PipelineFailed) HandlerName() string

func (PipelineFailed) NewEvent

func (PipelineFailed) NewEvent() interface{}

type PipelineFinished

type PipelineFinished EventHandler

func (PipelineFinished) Handle

func (h PipelineFinished) Handle(ctx context.Context, ei interface{}) error

func (PipelineFinished) HandlerName

func (h PipelineFinished) HandlerName() string

func (PipelineFinished) NewEvent

func (PipelineFinished) NewEvent() interface{}

type PipelineLoaded

type PipelineLoaded EventHandler

func (PipelineLoaded) Handle

func (h PipelineLoaded) Handle(ctx context.Context, ei interface{}) error

func (PipelineLoaded) HandlerName

func (h PipelineLoaded) HandlerName() string

func (PipelineLoaded) NewEvent

func (PipelineLoaded) NewEvent() interface{}

type PipelinePaused

type PipelinePaused EventHandler

func (PipelinePaused) Handle

func (h PipelinePaused) Handle(ctx context.Context, ei interface{}) error

func (PipelinePaused) HandlerName

func (h PipelinePaused) HandlerName() string

func (PipelinePaused) NewEvent

func (PipelinePaused) NewEvent() interface{}

type PipelinePlanned

type PipelinePlanned EventHandler

func (PipelinePlanned) Handle

func (h PipelinePlanned) Handle(ctx context.Context, ei interface{}) error

func (PipelinePlanned) HandlerName

func (h PipelinePlanned) HandlerName() string

func (PipelinePlanned) NewEvent

func (PipelinePlanned) NewEvent() interface{}

type PipelineQueued

type PipelineQueued EventHandler

func (PipelineQueued) Handle

func (h PipelineQueued) Handle(ctx context.Context, ei interface{}) error

Path from here: * PipelineQueued -> PipelineLoad command -> PipelineLoaded event handler

? is this meant to be when something is being picked up from the queue? ? so the PipelineQueue *command* is the one that puts it in a some sort of a queue?

func (PipelineQueued) HandlerName

func (h PipelineQueued) HandlerName() string

func (PipelineQueued) NewEvent

func (PipelineQueued) NewEvent() interface{}

type PipelineResumed

type PipelineResumed EventHandler

func (PipelineResumed) Handle

func (h PipelineResumed) Handle(ctx context.Context, ei interface{}) error

func (PipelineResumed) HandlerName

func (h PipelineResumed) HandlerName() string

func (PipelineResumed) NewEvent

func (PipelineResumed) NewEvent() interface{}

type PipelineStarted

type PipelineStarted EventHandler

func (PipelineStarted) Handle

func (h PipelineStarted) Handle(ctx context.Context, ei interface{}) error

func (PipelineStarted) HandlerName

func (h PipelineStarted) HandlerName() string

func (PipelineStarted) NewEvent

func (PipelineStarted) NewEvent() interface{}

type PipelineStepFinished

type PipelineStepFinished EventHandler

func (PipelineStepFinished) Handle

func (h PipelineStepFinished) Handle(ctx context.Context, ei interface{}) error

func (PipelineStepFinished) HandlerName

func (h PipelineStepFinished) HandlerName() string

func (PipelineStepFinished) NewEvent

func (PipelineStepFinished) NewEvent() interface{}

type PipelineStepQueued

type PipelineStepQueued EventHandler

func (PipelineStepQueued) Handle

func (h PipelineStepQueued) Handle(ctx context.Context, ei interface{}) error

func (PipelineStepQueued) HandlerName

func (h PipelineStepQueued) HandlerName() string

func (PipelineStepQueued) NewEvent

func (PipelineStepQueued) NewEvent() interface{}

type PipelineStepStarted

type PipelineStepStarted EventHandler

func (PipelineStepStarted) Handle

func (h PipelineStepStarted) Handle(ctx context.Context, ei interface{}) error

This handler only handle with a single event type: pipeline step started (if we want to start a new child pipeline)

func (PipelineStepStarted) HandlerName

func (h PipelineStepStarted) HandlerName() string

func (PipelineStepStarted) NewEvent

func (PipelineStepStarted) NewEvent() interface{}

type Queued

type Queued EventHandler

func (Queued) Handle

func (h Queued) Handle(ctx context.Context, ei interface{}) error

func (Queued) HandlerName

func (h Queued) HandlerName() string

func (Queued) NewEvent

func (Queued) NewEvent() interface{}

type Started

type Started EventHandler

func (Started) Handle

func (h Started) Handle(ctx context.Context, ei interface{}) error

func (Started) HandlerName

func (h Started) HandlerName() string

func (Started) NewEvent

func (Started) NewEvent() interface{}

type Stopped

type Stopped EventHandler

func (Stopped) Handle

func (h Stopped) Handle(ctx context.Context, ei interface{}) error

func (Stopped) HandlerName

func (h Stopped) HandlerName() string

func (Stopped) NewEvent

func (Stopped) NewEvent() interface{}

Jump to

Keyboard shortcuts

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