internal

package
v0.0.0-...-bb960d5 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MetricPrefix = "envoy_wasm_shortlink_plugin"

We want to group all our metrics under a common prefix

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

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

func NewMetrics

func NewMetrics() *Metrics

func (*Metrics) Increment

func (m *Metrics) Increment(name string)

Increment function increments the specific metric name by 1

type RequestHandler

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

	Metrics *Metrics
}

func (*RequestHandler) OnHttpRequestHeaders

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

func (*RequestHandler) OnHttpResponseHeaders

func (r *RequestHandler) OnHttpResponseHeaders(numHeaders int, endOfStream bool) types.Action

Jump to

Keyboard shortcuts

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