Documentation ¶
Index ¶
Constants ¶
View Source
const ( Signals = "__signals__" Outputs = "__outputs__" Terminal = "__terminal__" Name = "name" Metadata = "metadata" Sync = "sync" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { Name string `json:"name"` Metadata map[string]any `json:"metadata"` Sync bool `json:"sync"` Terminal bool `json:"terminal"` Timeout int `json:"timeout"` Run ActionFunc `json:"-"` }
Action is any action that can be performed by the system.
type ActionFunc ¶
ActionFunc is a function that can be used to run an action. Optionally, it can receive parameters like a logger, a database connection, or any other data that the action needs to run.
type Consumer ¶ added in v0.2.15
type Consumer struct {
// contains filtered or unexported fields
}
func NewConsumer ¶ added in v0.2.15
type IConsumer ¶ added in v0.2.15
type IConsumer interface {
Subscribe(ctx context.Context, handler MessageHandlerFn) error
}
type MessageHandlerFn ¶ added in v0.2.15
type Parameter ¶ added in v0.2.2
Parameter is a parameter that can be passed to an action by the system (runner), like a logger, a database connection, or any other data.
type Policy ¶
type Policy struct { Name string `json:"name"` Policy string `json:"policy"` Metadata map[string]any `json:"metadata"` // contains filtered or unexported fields }
func MustNewPolicy ¶
type Signal ¶
func Passthrough ¶ added in v0.2.3
func Passthrough() *Signal
Click to show internal directories.
Click to hide internal directories.