auth

package
v0.0.0-...-cc09eb9 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Access

func Access(roles ...uint64) func(c *fiber.Ctx) error

Page access middleware

func Middleware

func Middleware(service services.UserService) fiber.Handler

Types

type AuthHandler

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

func NewAuthHandler

func NewAuthHandler(s services.UserService) *AuthHandler

func (*AuthHandler) HandlerIndex

func (h *AuthHandler) HandlerIndex(c *fiber.Ctx) error

func (*AuthHandler) HandlerLogout

func (h *AuthHandler) HandlerLogout(c *fiber.Ctx) error

Jump to

Keyboard shortcuts

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