middleware

package
v2.33.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GRPCUnaryInterceptor

func GRPCUnaryInterceptor(c aperture.Client, controlPoint string, middlewareParams aperture.MiddlewareParams) grpc.UnaryServerInterceptor

GRPCUnaryInterceptor takes a control point name and creates a UnaryInterceptor which can be used with gRPC server.

func NewGRPCMiddleware added in v2.24.0

func NewGRPCMiddleware(client aperture.Client, controlPoint string, middlewareParams aperture.MiddlewareParams) (grpc.UnaryServerInterceptor, error)

NewGRPCMiddleware takes a control point name and creates a UnaryInterceptor which can be used with gRPC server.

Types

type HTTPMiddleware

type HTTPMiddleware interface {
	Handle(http.Handler) http.Handler
}

HTTPMiddleware is the interface for the HTTP middleware.

func NewHTTPMiddleware

func NewHTTPMiddleware(client aperture.Client, controlPoint string, middlewareParams aperture.MiddlewareParams) (HTTPMiddleware, error)

NewHTTPMiddleware creates a new HTTPMiddleware struct.

Jump to

Keyboard shortcuts

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