middlewares

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthorizationKeyUserID   = "Authorization.UserID"
	AuthorizationKeyUserRole = "Authorization.UserRole"
)
View Source
const (
	WSKeyConn  = "WS.Conn"
	WSKeyReply = "WS.Reply"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizationMiddleware

type AuthorizationMiddleware struct {
	Config *config.Section `inject:""`
}

@Middleware @Global

func (*AuthorizationMiddleware) Handle

func (AuthorizationMiddleware) SecurityScheme

func (AuthorizationMiddleware) Spec

type LogMiddleware

type LogMiddleware struct{}

@Middleware @Global

func (LogMiddleware) Handle

func (LogMiddleware) Spec

type SSEMiddleware

type SSEMiddleware struct{}

@Middleware

func (SSEMiddleware) Handle

func (SSEMiddleware) Spec

type WebSocketMiddleware

type WebSocketMiddleware struct{}

@Middleware

func (WebSocketMiddleware) Handle

func (WebSocketMiddleware) Spec

Jump to

Keyboard shortcuts

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