middleware

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 14 Imported by: 2

Documentation

Overview

Package middleware implements the functions, types, and interfaces for the module.

Package middleware implements the functions, types, and interfaces for the module.

Package middlewares implements the functions, types, and interfaces for the module.

Package middleware implements the functions, types, and interfaces for the module.

Package middleware implements the functions, types, and interfaces for the module.

Package middleware implements the functions, types, and interfaces for the module.

Package middleware implements the functions, types, and interfaces for the module.

Package middleware implements the functions, types, and interfaces for the module.

Index

Constants

View Source
const (
	ContextTypeGrpc = iota
	ContextTypeMetaData
)
View Source
const Type = "middleware"

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextType added in v0.1.0

type ContextType int

type Handler

type Handler = middleware.Handler

type Middleware

type Middleware = middleware.Middleware

func Chain

func Chain(m ...Middleware) Middleware

Chain returns a middleware that executes a chain of middleware.

func CircuitBreakerClient

func CircuitBreakerClient(ms []Middleware, ok bool) []Middleware

func MetadataClient

func MetadataClient(ms []Middleware, ok bool, cmm *configv1.Middleware_Metadata) []Middleware

func MetadataServer

func MetadataServer(ms []Middleware, ok bool, cmm *configv1.Middleware_Metadata) []Middleware

func NewClient

func NewClient(cfg *configv1.Middleware, ss ...OptionSetting) []Middleware

NewClient creates a new client with the given configuration

func NewServer

func NewServer(cfg *configv1.Middleware, ss ...OptionSetting) []Middleware

NewServer creates a new server with the given configuration

func RateLimitServer

func RateLimitServer(ms []Middleware, cfg *configv1.Middleware_RateLimiter) []Middleware

func Recovery

func Recovery(ms []Middleware, ok bool) []Middleware

func Security added in v0.1.5

func Security(middlewares []Middleware, cfg *configv1.Security, ss ...security.OptionSetting) []Middleware

func SecurityClient added in v0.0.12

func SecurityClient(middlewares []Middleware, cfg *configv1.Security, ss ...security.OptionSetting) []Middleware

func SecurityServer added in v0.0.12

func SecurityServer(middlewares []Middleware, cfg *configv1.Security, ss ...security.OptionSetting) []Middleware

func SkipperClient added in v0.1.5

func SkipperClient(middlewares []Middleware, cfg *configv1.Security, ss ...security.OptionSetting) []Middleware

func TracingClient

func TracingClient(ms []Middleware, ok bool) []Middleware

func TracingServer

func TracingServer(ms []Middleware, ok bool) []Middleware

func Validate

func Validate(ms []Middleware, ok bool, validator *configv1.Middleware_Validator) []Middleware

Validate is a middleware validator. Deprecated: use ValidateServer

func ValidateServer added in v0.0.12

func ValidateServer(ms []Middleware, ok bool, validator *configv1.Middleware_Validator) []Middleware

type Option added in v0.1.0

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

func (Option) Securities added in v0.1.5

func (o Option) Securities() []security.OptionSetting

type OptionSetting added in v0.1.0

type OptionSetting = func(*Option)

func WithSecurityOptions added in v0.1.0

func WithSecurityOptions(ss ...security.OptionSetting) OptionSetting

Directories

Path Synopsis
Package empty implements the functions, types, and interfaces for the module.
Package empty implements the functions, types, and interfaces for the module.
Package optimize implements the functions, types, and interfaces for the module.
Package optimize implements the functions, types, and interfaces for the module.
Package security implements the functions, types, and interfaces for the module.
Package security implements the functions, types, and interfaces for the module.
Package validate implements the functions, types, and interfaces for the module.
Package validate implements the functions, types, and interfaces for the module.

Jump to

Keyboard shortcuts

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