internal

package
v0.0.0-...-d59c947 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	XRequestIdHeader = "x-request-id"
	AuthHeader       = "authorization"
)
View Source
const (
	AuthTimeoutDefault = time.Second
)
View Source
const MetricPrefix = "envoy_wasm_plugin"

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthClient

type AuthClient struct {
	XRequestID string
	Conf       *Config
	Metrics    *Metrics
}

func (*AuthClient) RequestJWT

func (d *AuthClient) RequestJWT()

type Config

type Config struct {
	AuthClusterName string
	AuthAuthority   string
	AuthTimeout     uint32
}

Config is used to extract any WASMPlugin configuration defined in the deployed YML

func NewConfig

func NewConfig() *Config

type Metrics

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

func NewMetrics

func NewMetrics() *Metrics

func (*Metrics) Increment

func (m *Metrics) Increment(name string, tags [][2]string)

type RequestHandler

type RequestHandler struct {
	// Bring in the callback functions
	types.DefaultHttpContext

	Conf    *Config
	Metrics *Metrics
}

func (*RequestHandler) OnHttpRequestHeaders

func (r *RequestHandler) OnHttpRequestHeaders(_ int, _ bool) types.Action

Jump to

Keyboard shortcuts

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