Documentation
¶
Overview ¶
Package directives holds the DSL directive registry and the shipped directives themselves.
The shared types and helpers live in the `core` subpackage so that future directives can be moved into their own folders without creating an import cycle. This file re-exports everything existing directive implementations refer to, so no caller changes when a directive moves.
Index ¶
- Constants
- func AtErr(ctx *Context, line int, name, msg string) error
- func AtErrf(ctx *Context, line int, name, format string, args ...any) error
- func Names() []string
- func ParseFloat(s string) (float64, error)
- func ParseInt(s string) (int, error)
- func ParseList(s string) []string
- func Register(d Directive)
- func SplitBlock(lines []string, start int) (header string, body []string, next int, err error)
- func SplitNameAndAttrs(s string) (string, map[string]string, error)
- func StripDirectivePrefix(line, name string) (string, bool)
- func TrimQuotes(s string) string
- type ActionMeta
- type AssertDecl
- type CapabilityEnvelope
- type ConfigFieldSpec
- type Context
- type Directive
- type GateRule
- type OnErrorDecl
- type OnErrorRule
- type Pipeline
- type Pool
- type Position
- type Preprocessed
- type Requirement
Constants ¶
const StatsDeclarationKey = "stats_collectors"
Variables ¶
This section is empty.
Functions ¶
func ParseFloat ¶
func SplitBlock ¶
func StripDirectivePrefix ¶
func TrimQuotes ¶
Types ¶
type ActionMeta ¶
type ActionMeta = core.ActionMeta
Type aliases. Code in this package keeps using the bare names.
type AssertDecl ¶
type AssertDecl = core.AssertDecl
Type aliases. Code in this package keeps using the bare names.
type CapabilityEnvelope ¶
type CapabilityEnvelope = core.CapabilityEnvelope
Type aliases. Code in this package keeps using the bare names.
type ConfigFieldSpec ¶
type ConfigFieldSpec struct {
Pos Position
Key string
Default string
CLI string
Desc string
Positional int
}
ConfigFieldSpec holds metadata for a field declared inside @config { ... }.
type OnErrorDecl ¶
type OnErrorDecl = core.OnErrorDecl
Type aliases. Code in this package keeps using the bare names.
type OnErrorRule ¶
type OnErrorRule = core.OnErrorRule
Type aliases. Code in this package keeps using the bare names.
type Preprocessed ¶
type Preprocessed = core.Preprocessed
Type aliases. Code in this package keeps using the bare names.
type Requirement ¶
type Requirement = core.Requirement
Type aliases. Code in this package keeps using the bare names.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package builtin holds the shipped directives, one subdirectory per directive.
|
Package builtin holds the shipped directives, one subdirectory per directive. |
|
at_on
file: flow/directives/builtin/at_on/on.go
|
file: flow/directives/builtin/at_on/on.go |
|
Package core holds the domain-agnostic parts of the directives system.
|
Package core holds the domain-agnostic parts of the directives system. |