middleware

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware struct {
	Repositories repositories.Repositories
	Auth         *auth.Auth
}

func (*Middleware) Authentication

func (m *Middleware) Authentication(ctx *fiber.Ctx) error

Authentication is used to check users tokens in header.

func (*Middleware) UserEndpoint

func (m *Middleware) UserEndpoint(ctx *fiber.Ctx) error

UserEndpoint middleware checks that right user is accessing right endpoint stats.

Jump to

Keyboard shortcuts

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