Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitterMiddleware ¶
type CommitterMiddleware[I comparable, T boltzmann.Identifiable[I]] struct { StateService state.Service[T] Next Delegate[T] }
CommitterMiddleware is an implementation of Delegate that commits the state of executed process.
type Delegate ¶
type Delegate[T any] interface { // Execute executes the underlying task(s). Execute(ctx context.Context, arg T) error }
Delegate is a function/routine interface executed by executor.Executor(s) instances.
type LockingMiddleware ¶
type LockingMiddleware[I comparable, T boltzmann.Identifiable[I]] struct { Lock lock.Lock Next Delegate[T] }
LockingMiddleware is an implementation of Delegate that performs concurrency-locking mechanisms for each process execution.
Click to show internal directories.
Click to hide internal directories.