extract

package
v1.4.0 Latest Latest
Warning

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

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

Documentation

Overview

Package extract provides a shared token/value extractor for middleware that reads values from request headers, query parameters, cookies, form fields, or path parameters using a "source:name[:prefix]" lookup string format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Func

type Func func(c *celeris.Context) string

Func extracts a string value from a request context.

func Parse

func Parse(lookup string) Func

Parse parses a comma-separated lookup string into an extractor function. Format: "source:name[:prefix]" where source is header, query, cookie, form, or param. Multiple sources separated by commas are tried in order; the first non-empty result wins.

Jump to

Keyboard shortcuts

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