middleware

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCORS

func AddCORS(e *echo.Echo)

func AddLog

func AddLog(e *echo.Echo, log *logrus.Logger)

Types

type BasicAuthMiddleware

type BasicAuthMiddleware interface {
	BasicAuthMiddleware(next echo.HandlerFunc) echo.HandlerFunc
}

type BasicAuthMiddlewareImpl

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

func NewBasicAuthMiddlewareImpl

func NewBasicAuthMiddlewareImpl(username, password string) *BasicAuthMiddlewareImpl

func (*BasicAuthMiddlewareImpl) BasicAuthMiddleware

func (b *BasicAuthMiddlewareImpl) BasicAuthMiddleware(next echo.HandlerFunc) echo.HandlerFunc

type OAuthMiddleware

type OAuthMiddleware interface {
	AuthTokenMiddleware(roles ...models.KindRole) echo.MiddlewareFunc
}

type OAuthMiddlewareImpl

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

func NewOAuthMiddlewareImpl

func NewOAuthMiddlewareImpl(tokenService services.TokenService) *OAuthMiddlewareImpl

func (*OAuthMiddlewareImpl) AuthTokenMiddleware

func (o *OAuthMiddlewareImpl) AuthTokenMiddleware(roles ...models.KindRole) echo.MiddlewareFunc

Jump to

Keyboard shortcuts

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