middleware

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaxPayloadSizeMiddleware added in v1.1.0

func MaxPayloadSizeMiddleware(limit int64) func(http.Handler) http.Handler

func NewSessionStore

func NewSessionStore(credentials *oauth2.Config) *sessions.CookieStore

Types

type SessionMiddleware

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

func NewSessionMiddleware

func NewSessionMiddleware(
	jwtManager crypto.JwtManager,
	store *sessions.CookieStore,
	credentials *oauth2.Config,
	onlyoffice *shared.OnlyofficeConfig,
	logger log.Logger,
) SessionMiddleware

func (SessionMiddleware) Protect

func (m SessionMiddleware) Protect(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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