integration

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 3 Imported by: 17 modules, 10 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UseGochiURLParam

func UseGochiURLParam(name string, fn GochiURLParamFunc)

UseGochiURLParam registers a directive executor which can extract values from `chi.URLParam`, i.e. path variables. https://ggicci.github.io/httpin/integrations/gochi

Usage:

import httpin_integration "github.com/ggicci/httpin/integration"

func init() {
    httpin_integration.UseGochiURLParam("path", chi.URLParam)
}

func UseGorillaMux

func UseGorillaMux(name string, fnVars GorillaMuxVarsFunc)

UseGorillaMux registers a new directive executor which can extract values from `mux.Vars`, i.e. path variables. https://ggicci.github.io/httpin/integrations/gorilla

Usage:

import httpin_integration "github.com/ggicci/httpin/integration"

func init() {
    httpin_integration.UseGorillaMux("path", mux.Vars)
}

func UseHttpPathVariable added in v0.20.0

func UseHttpPathVariable(name string)

UseHttpPathVariable registers a new directive executor which can extract values from URL path variables via `http.Request.PathValue` API. https://ggicci.github.io/httpin/integrations/http

Usage:

import httpin_integration "github.com/ggicci/httpin/integration"
func init() {
	httpin_integration.UseHttpPathVariable("path")
}

Types

type GochiURLParamFunc

type GochiURLParamFunc func(r *http.Request, key string) string

GochiURLParamFunc is chi.URLParam

type GorillaMuxVarsFunc

type GorillaMuxVarsFunc func(*http.Request) map[string]string

GorillaMuxVarsFunc is mux.Vars

type HttpMuxVarsFunc added in v0.20.0

type HttpMuxVarsFunc func(*http.Request) map[string]string

Directories

Path Synopsis
echo module

Jump to

Keyboard shortcuts

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