middleware

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 16

README

Middlewares

Middleware components provide a way to define middlewares that are executed in a pipeline and modify requests and responses.

Learn more about middlewares in Dapr

Implementing a new Middleware

A compliant middleware needs to implement the Middleware interface included in the middleware.go file.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	metadata.Base `json:",inline"`
}

Metadata represents a set of middleware specific properties.

type Middleware

type Middleware interface {
	GetHandler(ctx context.Context, metadata Metadata) (func(next http.Handler) http.Handler, error)
}

Middleware is the interface for a middleware.

Directories

Path Synopsis
http
oauth2clientcredentials/mocks
Package mock_oauth2clientcredentials is a generated GoMock package.
Package mock_oauth2clientcredentials is a generated GoMock package.
opa

Jump to

Keyboard shortcuts

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