function_upstream

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	FunctionURI      string `json:"function_uri"`
	Timeout          int    `json:"timeout,omitempty"`
	SSLVerify        *bool  `json:"ssl_verify,omitempty"`
	Keepalive        *bool  `json:"keepalive,omitempty"`
	KeepaliveTimeout int    `json:"keepalive_timeout,omitempty"`
	KeepalivePool    int    `json:"keepalive_pool,omitempty"`
}

type Plugin

type Plugin struct {
	base.BasePlugin
	Config    Config
	Processor Processor
	Client    *http.Client
	// contains filtered or unexported fields
}

func (*Plugin) Handler

func (p *Plugin) Handler(next http.Handler) http.Handler

func (*Plugin) PostInit

func (p *Plugin) PostInit() error

func (*Plugin) RunRequestPhase

func (p *Plugin) RunRequestPhase(w http.ResponseWriter, r *http.Request) base.RequestPhaseResult

RunRequestPhase owns the external function response. The source is published before the first response byte so the strict request pipeline can classify both successful and failed function calls as upstream responses.

func (*Plugin) Stop

func (p *Plugin) Stop()

type Processor

type Processor func(*http.Request, Config)

Jump to

Keyboard shortcuts

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