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.
Click to show internal directories.
Click to hide internal directories.