direct

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 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 DefaultProcessor

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

func NewDefaultProcessor

func NewDefaultProcessor(port int) DefaultProcessor

NewDefaultProcessor returns a direct processor that forwards actions to the configured extension endpoint.

func (DefaultProcessor) Process

Process validates the direct instruction and delegates execution to the extension, marking the result as in-progress.

type Processor

type Processor func(i *types.DirectInstruction) ([]byte, error)

func (Processor) Process

func (p Processor) Process(a *types.Action) types.ActionResult

Process parses the direct instruction and executes the wrapped processor function, returning the action result payload.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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