auth

package
v0.0.0-...-2143ae3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(c *fiber.Ctx) error

func Register

func Register(c *fiber.Ctx) error

func SetupRoutes

func SetupRoutes(app *fiber.App)

func State

func State(c *fiber.Ctx) error

Types

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

type LoginUserRequest

type LoginUserRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type RegisterUserRequest

type RegisterUserRequest struct {
	Username    string         `json:"username"`
	Password    string         `json:"password"`
	Name        string         `json:"name"`
	Email       string         `json:"email"`
	Permissions datatypes.JSON `json:"permissions"`
}

Jump to

Keyboard shortcuts

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