memory

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(executionDao dao.Service[string, execution.Execution], options ...Option) approval.Service

Types

type Option

type Option func(*service)

func WithExecutionQueue added in v0.1.8

func WithExecutionQueue(q messaging.Queue[execution.Execution]) Option

WithExecutionQueue attaches the execution queue so that the approval service can re-schedule a task automatically after it has been approved. This is required for ad-hoc executions that are not managed by the allocator – once a positive decision is recorded the service publishes the execution back to the queue so that the processor can pick it up.

func WithProcessDAO

func WithProcessDAO(dao dao.Service[string, execution.Process]) Option

WithProcessDAO allows the approval service to update the parent process when a decision is made. The allocator then notices the changed execution state and schedules it for execution.

Jump to

Keyboard shortcuts

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