Versions in this module Expand all Collapse all v0 v0.36.0 Oct 31, 2026 Changes in this version + type AdmitPlugin interface + Admit func(ctx context.Context, c *Call) *Refusal + type AfterPlugin interface + After func(ctx context.Context, c *Call, a *Answer) *Refusal + type Answer struct + Header http.Header + Status int + func NewAnswer(res *http.Response) *Answer + func (a *Answer) Body(limit int64) ([]byte, error) + type BeforePlugin interface + Before func(ctx context.Context, c *Call) *Refusal + type Call struct + Caller Caller + Function *v1.Function + Received time.Time + Remainder string + Request *http.Request + Stance v1.AuthMode + Target activator.FunctionRef + type Caller int + const AppHook + const External + const FnToFn + const SensorAction + const WorkflowStep + func (c Caller) String() string + type Chain struct + func NewChain(plugins ...Plugin) *Chain + func (ch *Chain) Admit(ctx context.Context, c *Call) *Refusal + func (ch *Chain) After(ctx context.Context, c *Call, a *Answer) *Refusal + func (ch *Chain) Before(ctx context.Context, c *Call) *Refusal + type Plugin interface + Applies func(c *Call) bool + Name func() string + type Refusal struct + Body []byte + Err error + Header http.Header + Status int + func (r *Refusal) Error() string + func (r *Refusal) StatusCode() int + func (r *Refusal) Unwrap() error + func (r *Refusal) WriteAnswer(w http.ResponseWriter)