users

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Become

func Become(c fiber.Ctx) error

func Create

func Create(c fiber.Ctx) error

func Delete

func Delete(c fiber.Ctx) error

func Edit

func Edit(c fiber.Ctx) error

func List

func List(c fiber.Ctx) error

func ViewCreate

func ViewCreate(c fiber.Ctx) error

func ViewEdit

func ViewEdit(c fiber.Ctx) error

Types

type CreateForm

type CreateForm struct {
	Username        string `form:"username" validate:"required,max=20"`
	Password        string `form:"password" validate:"required,min=4"`
	ConfirmPassword string `form:"confirm_password" validate:"required"`
	Role            string `form:"role" validate:"required,role"`
}

type EditForm

type EditForm struct {
	Password        string `form:"password" validate:"omitempty,min=4"`
	ConfirmPassword string `form:"confirm_password"`
	Role            string `form:"role" validate:"required,role"`
}

Jump to

Keyboard shortcuts

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