middlewares

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Bearer authType = "Bearer"
	Basic  authType = "Basic"
	Query  authType = "Query"
	None   authType = "None"
)

Variables

This section is empty.

Functions

func TemplateBody added in v1.1.7

func TemplateBody(body map[string]any, headers map[string]any, VARIABLES map[string]any) (map[string]any, bool, error)

func TemplateMessage added in v1.3.0

func TemplateMessage(template string, bodyData map[string]any, headerData map[string]any, variables map[string]any) (map[string]any, error)

func TemplatePath added in v1.1.7

func TemplatePath(reqUrl *url.URL, VARIABLES any) (string, bool, error)

func TemplateQuery added in v1.1.7

func TemplateQuery(reqUrl *url.URL, data map[string]any, VARIABLES any) (string, map[string]any, bool, error)

Types

type AliasMiddleware added in v1.3.0

type AliasMiddleware struct {
	Next http.Handler
}

func (AliasMiddleware) Use added in v1.3.0

func (data AliasMiddleware) Use() http.Handler

type AuthMiddleware

type AuthMiddleware struct {
	Next http.Handler
}

func (AuthMiddleware) Use

func (data AuthMiddleware) Use() http.Handler

type Context added in v1.2.0

type Context struct {
	Next http.Handler
}

type EndpointsMiddleware

type EndpointsMiddleware struct {
	Next http.Handler
}

func (EndpointsMiddleware) Use

func (data EndpointsMiddleware) Use() http.Handler

type LogMiddleware

type LogMiddleware struct {
	Next http.Handler
}

func (LogMiddleware) Use

func (data LogMiddleware) Use() http.Handler

type MessageMiddleware added in v1.3.0

type MessageMiddleware struct {
	Next http.Handler
}

func (MessageMiddleware) Use added in v1.3.0

func (data MessageMiddleware) Use() http.Handler

type ServeMiddleware added in v1.3.0

type ServeMiddleware struct {
	Next http.Handler
}

func (ServeMiddleware) Use added in v1.3.0

func (data ServeMiddleware) Use() http.Handler

type TemplateMiddleware

type TemplateMiddleware struct {
	Next http.Handler
}

func (TemplateMiddleware) Use

func (data TemplateMiddleware) Use() http.Handler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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