handlers

package
v0.0.0-...-2effb0b Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLink(ctx *fiber.Ctx) error
func DeleteLink(ctx *fiber.Ctx) error
func GetAllLinks(ctx *fiber.Ctx) error

func GetLinkById

func GetLinkById(ctx *fiber.Ctx) error

func GetUserInfo

func GetUserInfo(ctx *fiber.Ctx) error

func Login

func Login(ctx *fiber.Ctx) error

func Logout

func Logout(ctx *fiber.Ctx) error

func Redirect

func Redirect(ctx *fiber.Ctx) error

func Signup

func Signup(ctx *fiber.Ctx) error
func UpdateLink(ctx *fiber.Ctx) error

Types

type LinkPayload

type LinkPayload struct {
	RedirectUrl string `json:"redirect_url" validate:"required,min=4,max=100"`
	ShortenedId string `json:"shortened_id" validate:"max=20"`
}

Jump to

Keyboard shortcuts

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