interceptor

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbstractCommandInterceptor

type AbstractCommandInterceptor struct {
	Next engine.Interceptor
}

type CommandContext

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

func (CommandContext) GetAgenda

func (CommandContext) GetProcessEngineConfiguration

func (c CommandContext) GetProcessEngineConfiguration() engine.ProcessEngineConfiguration

func (CommandContext) GetQuery

func (c CommandContext) GetQuery() *query.Query

func (*CommandContext) SetAgenda

func (c *CommandContext) SetAgenda(agenda agenda.CinderellaEngineAgenda)

func (*CommandContext) SetProcessEngineConfiguration

func (c *CommandContext) SetProcessEngineConfiguration(processEngineConfiguration engine.ProcessEngineConfiguration)

func (CommandContext) WithQuery

func (c CommandContext) WithQuery(q *query.Query) engine.Context

type CommandContextFactory

type CommandContextFactory struct {
	ProcessEngineConfiguration engine.ProcessEngineConfiguration
}

func (CommandContextFactory) CreateCommandContext

func (factory CommandContextFactory) CreateCommandContext() engine.Context

type CommandContextInterceptor

type CommandContextInterceptor struct {
	Next                  engine.Interceptor
	CommandContextFactory engine.ICommandContextFactory
}

func (CommandContextInterceptor) Execute

func (commandContextInterceptor CommandContextInterceptor) Execute(command engine.Command) (interface{}, error)

func (*CommandContextInterceptor) SetNext

func (commandContextInterceptor *CommandContextInterceptor) SetNext(next engine.Interceptor)

type CommandInvoker

type CommandInvoker struct {
	Next engine.Interceptor
}

func (CommandInvoker) Execute

func (commandInvoker CommandInvoker) Execute(command engine.Command) (result interface{}, err error)

func (*CommandInvoker) SetNext

func (commandInvoker *CommandInvoker) SetNext(next engine.Interceptor)

type TransactionContextInterceptor

type TransactionContextInterceptor struct {
	Next engine.Interceptor
}

func (TransactionContextInterceptor) Execute

func (transactionContextInterceptor TransactionContextInterceptor) Execute(command engine.Command) (value interface{}, err error)

func (*TransactionContextInterceptor) SetNext

func (transactionContextInterceptor *TransactionContextInterceptor) SetNext(next engine.Interceptor)

Jump to

Keyboard shortcuts

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