middlewares

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthTokenContextKey contextKey = "authToken"
	IDTokenContextKey   contextKey = "idToken"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger added in v0.1.6

type Logger interface {
	Middleware() gin.HandlerFunc
}

func NewLoggerMiddleware added in v0.1.6

func NewLoggerMiddleware(logger *logger.Logger) (Logger, error)

type LoggerImpl added in v0.1.6

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

func (LoggerImpl) Middleware added in v0.1.6

func (l LoggerImpl) Middleware() gin.HandlerFunc

type OIDCAuthenticator

type OIDCAuthenticator interface {
	Middleware() gin.HandlerFunc
}

func NewOIDCAuthenticatorMiddleware added in v0.1.6

func NewOIDCAuthenticatorMiddleware(logger logger.Logger, cfg config.Config) (OIDCAuthenticator, error)

NewOIDCAuthenticatorMiddleware creates a new OIDCAuthenticator instance

type OIDCAuthenticatorImpl

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

func (*OIDCAuthenticatorImpl) Middleware

func (a *OIDCAuthenticatorImpl) Middleware() gin.HandlerFunc

Middleware implementation of the OIDCAuthenticator interface

type OIDCAuthenticatorNoop

type OIDCAuthenticatorNoop struct{}

func (*OIDCAuthenticatorNoop) Middleware

func (a *OIDCAuthenticatorNoop) Middleware() gin.HandlerFunc

Noop implementation of the OIDCAuthenticator interface

type Telemetry added in v0.1.6

type Telemetry interface {
	Middleware() gin.HandlerFunc
}

func NewTelemetryMiddleware added in v0.1.6

func NewTelemetryMiddleware(cfg config.Config, telemetry otel.OpenTelemetry, logger logger.Logger) (Telemetry, error)

type TelemetryImpl added in v0.1.6

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

func (*TelemetryImpl) Middleware added in v0.1.6

func (t *TelemetryImpl) Middleware() gin.HandlerFunc

Jump to

Keyboard shortcuts

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