middleware

package
v0.0.0-...-f15602e Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package middleware contains rest middlewares

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

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

Middleware represents rest middleware.

func NewMiddleware

func NewMiddleware(authService auth.Service) *Middleware

NewMiddleware create instance of Middleware.

func (*Middleware) Authorization

func (m *Middleware) Authorization(next http.Handler) http.Handler

Authorization middleware authenticates and populates user info.

Jump to

Keyboard shortcuts

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