Documentation ¶
Index ¶
- func LogEventMessage(ctx context.Context, cmd interface{}, lock *sync.Mutex) error
- type EventHandler
- type ExecutionFailed
- type ExecutionFinished
- type ExecutionPaused
- type ExecutionPlanned
- type ExecutionQueued
- type ExecutionStarted
- type FpCommandBus
- type FpCommandBusImpl
- type PipelineCanceled
- type PipelineFailed
- type PipelineFinished
- type PipelineLoaded
- type PipelinePaused
- type PipelinePlanned
- type PipelineQueued
- type PipelineResumed
- type PipelineStarted
- type StepFinished
- type StepForEachPlanned
- type StepPipelineStarted
- type StepQueued
- type TriggerFailed
- type TriggerFinished
- type TriggerQueued
- type TriggerStarted
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EventHandler ¶
type EventHandler struct { // Event handlers can only send commands, they are not even permitted access // to the EventBus. CommandBus FpCommandBus }
type ExecutionFailed ¶ added in v1.0.0
type ExecutionFailed EventHandler
func (ExecutionFailed) Handle ¶ added in v1.0.0
func (h ExecutionFailed) Handle(ctx context.Context, ei interface{}) error
func (ExecutionFailed) HandlerName ¶ added in v1.0.0
func (h ExecutionFailed) HandlerName() string
func (ExecutionFailed) NewEvent ¶ added in v1.0.0
func (h ExecutionFailed) NewEvent() interface{}
type ExecutionFinished ¶ added in v1.0.0
type ExecutionFinished EventHandler
func (ExecutionFinished) Handle ¶ added in v1.0.0
func (h ExecutionFinished) Handle(ctx context.Context, ei interface{}) error
func (ExecutionFinished) HandlerName ¶ added in v1.0.0
func (h ExecutionFinished) HandlerName() string
func (ExecutionFinished) NewEvent ¶ added in v1.0.0
func (h ExecutionFinished) NewEvent() interface{}
type ExecutionPaused ¶ added in v1.0.0
type ExecutionPaused EventHandler
func (ExecutionPaused) Handle ¶ added in v1.0.0
func (h ExecutionPaused) Handle(ctx context.Context, ei interface{}) error
func (ExecutionPaused) HandlerName ¶ added in v1.0.0
func (h ExecutionPaused) HandlerName() string
func (ExecutionPaused) NewEvent ¶ added in v1.0.0
func (h ExecutionPaused) NewEvent() interface{}
type ExecutionPlanned ¶ added in v1.0.0
type ExecutionPlanned EventHandler
func (ExecutionPlanned) Handle ¶ added in v1.0.0
func (h ExecutionPlanned) Handle(ctx context.Context, ei interface{}) error
func (ExecutionPlanned) HandlerName ¶ added in v1.0.0
func (h ExecutionPlanned) HandlerName() string
func (ExecutionPlanned) NewEvent ¶ added in v1.0.0
func (h ExecutionPlanned) NewEvent() interface{}
type ExecutionQueued ¶ added in v1.0.0
type ExecutionQueued EventHandler
func (ExecutionQueued) Handle ¶ added in v1.0.0
func (h ExecutionQueued) Handle(ctx context.Context, ei interface{}) error
func (ExecutionQueued) HandlerName ¶ added in v1.0.0
func (h ExecutionQueued) HandlerName() string
func (ExecutionQueued) NewEvent ¶ added in v1.0.0
func (h ExecutionQueued) NewEvent() interface{}
type ExecutionStarted ¶ added in v1.0.0
type ExecutionStarted EventHandler
func (ExecutionStarted) Handle ¶ added in v1.0.0
func (h ExecutionStarted) Handle(ctx context.Context, ei interface{}) error
func (ExecutionStarted) HandlerName ¶ added in v1.0.0
func (h ExecutionStarted) HandlerName() string
func (ExecutionStarted) NewEvent ¶ added in v1.0.0
func (h ExecutionStarted) NewEvent() interface{}
type FpCommandBus ¶
type FpCommandBusImpl ¶ added in v0.2.0
type FpCommandBusImpl struct {
Cb *cqrs.CommandBus
}
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
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 StepFinished ¶
type StepFinished EventHandler
func (StepFinished) Handle ¶
func (h StepFinished) Handle(ctx context.Context, ei interface{}) error
This is the generic step finish event handler that is fired by the step_start command
Do not confuse this with pipeline_step_finish **command** which is raised when a child pipeline has finished
func (StepFinished) HandlerName ¶
func (h StepFinished) HandlerName() string
func (StepFinished) NewEvent ¶
func (StepFinished) NewEvent() interface{}
type StepForEachPlanned ¶
type StepForEachPlanned EventHandler
func (StepForEachPlanned) Handle ¶
func (h StepForEachPlanned) Handle(ctx context.Context, ei interface{}) error
func (StepForEachPlanned) HandlerName ¶
func (h StepForEachPlanned) HandlerName() string
func (StepForEachPlanned) NewEvent ¶
func (StepForEachPlanned) NewEvent() interface{}
type StepPipelineStarted ¶
type StepPipelineStarted EventHandler
func (StepPipelineStarted) Handle ¶
func (h StepPipelineStarted) 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 (StepPipelineStarted) HandlerName ¶
func (h StepPipelineStarted) HandlerName() string
func (StepPipelineStarted) NewEvent ¶
func (StepPipelineStarted) NewEvent() interface{}
type StepQueued ¶
type StepQueued EventHandler
func (StepQueued) HandlerName ¶
func (h StepQueued) HandlerName() string
func (StepQueued) NewEvent ¶
func (StepQueued) NewEvent() interface{}
type TriggerFailed ¶ added in v1.0.0
type TriggerFailed EventHandler
func (TriggerFailed) Handle ¶ added in v1.0.0
func (h TriggerFailed) Handle(ctx context.Context, ei interface{}) error
func (TriggerFailed) HandlerName ¶ added in v1.0.0
func (h TriggerFailed) HandlerName() string
func (TriggerFailed) NewEvent ¶ added in v1.0.0
func (h TriggerFailed) NewEvent() interface{}
type TriggerFinished ¶ added in v1.0.0
type TriggerFinished EventHandler
func (TriggerFinished) Handle ¶ added in v1.0.0
func (h TriggerFinished) Handle(ctx context.Context, ei interface{}) error
func (TriggerFinished) HandlerName ¶ added in v1.0.0
func (h TriggerFinished) HandlerName() string
func (TriggerFinished) NewEvent ¶ added in v1.0.0
func (h TriggerFinished) NewEvent() interface{}
type TriggerQueued ¶ added in v1.0.0
type TriggerQueued EventHandler
func (TriggerQueued) Handle ¶ added in v1.0.0
func (h TriggerQueued) Handle(ctx context.Context, ei interface{}) error
func (TriggerQueued) HandlerName ¶ added in v1.0.0
func (h TriggerQueued) HandlerName() string
func (TriggerQueued) NewEvent ¶ added in v1.0.0
func (h TriggerQueued) NewEvent() interface{}
type TriggerStarted ¶ added in v1.0.0
type TriggerStarted EventHandler
func (TriggerStarted) Handle ¶ added in v1.0.0
func (h TriggerStarted) Handle(ctx context.Context, ei interface{}) error
func (TriggerStarted) HandlerName ¶ added in v1.0.0
func (h TriggerStarted) HandlerName() string
func (TriggerStarted) NewEvent ¶ added in v1.0.0
func (h TriggerStarted) NewEvent() interface{}
Source Files ¶
- execution_failed.go
- execution_finished.go
- execution_paused.go
- execution_planned.go
- execution_queued.go
- execution_started.go
- handler.go
- pipeline_canceled.go
- pipeline_failed.go
- pipeline_finished.go
- pipeline_loaded.go
- pipeline_paused.go
- pipeline_planned.go
- pipeline_queued.go
- pipeline_resumed.go
- pipeline_started.go
- step_finished.go
- step_for_each_planned.go
- step_pipeline_started.go
- step_queued.go
- trigger_failed.go
- trigger_finished.go
- trigger_queued.go
- trigger_started.go
Click to show internal directories.
Click to hide internal directories.