plugin

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package plugin is the Phase-1 host registry for Interseptor extensions (see docs/product/prd-0005-extensions.md). v1 is in-process only: first-party packages register hooks at init. Third-party load models come later.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmitFlowCaptured

func EmitFlowCaptured(flowID int64)

EmitFlowCaptured invokes registered hooks outside any caller lock.

func OnFlowCaptured

func OnFlowCaptured(h FlowHook)

OnFlowCaptured registers a hook. Safe for concurrent use.

func Reset

func Reset()

Reset clears hooks (tests only).

Types

type FlowHook

type FlowHook func(flowID int64)

FlowHook is called after a flow is persisted (best-effort; must not block the proxy hot path — do heavy work in a goroutine).

Jump to

Keyboard shortcuts

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