middleware

package
v0.0.0-...-f06a132 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MiddlewareSet = wire.NewSet(InitMiddleware)

Functions

This section is empty.

Types

type Middleware

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

func InitMiddleware

func InitMiddleware(sessionService *session.SessionService) *Middleware

func (*Middleware) AuthRequired

func (m *Middleware) AuthRequired() gin.HandlerFunc

Check if user is authenticated (has a valid ongoing session)

Jump to

Keyboard shortcuts

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