middlewares

package
v0.0.0-...-bbcf6c5 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 7 Imported by: ? modules, 0 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

Functions

This section is empty.

Types

type AuthMiddleware

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

func NewAuthMiddleware

func NewAuthMiddleware(config lib.Config, handler lib.HttpHandler, authService services.AuthService) AuthMiddleware

func (AuthMiddleware) Setup

func (m AuthMiddleware) Setup()

type CorsMiddleware

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

func NewCorsMiddleware

func NewCorsMiddleware(handler lib.HttpHandler, logger lib.Logger, config lib.Config) CorsMiddleware

func (CorsMiddleware) Setup

func (m CorsMiddleware) Setup()

type GZipMiddleware

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

func NewGZipMiddleware

func NewGZipMiddleware(handler lib.HttpHandler) GZipMiddleware

func (GZipMiddleware) Setup

func (m GZipMiddleware) Setup()

type IMiddleware

type IMiddleware interface {
	Setup()
}

type Middlewares

type Middlewares []IMiddleware

func NewMiddlewares

func NewMiddlewares(
	corsMiddleware CorsMiddleware,
	gzipMiddleware GZipMiddleware,
	secureMiddleware SecureMiddleware,
	authMiddleware AuthMiddleware,
) Middlewares

func (Middlewares) Setup

func (a Middlewares) Setup()

type SecureMiddleware

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

func NewSecureMiddleware

func NewSecureMiddleware(handler lib.HttpHandler) SecureMiddleware

func (SecureMiddleware) Setup

func (m SecureMiddleware) Setup()

Jump to

Keyboard shortcuts

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