account

package
v0.0.0-...-1c7d376 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteSession

func DeleteSession(c *fiber.Ctx) error

DeleteSession handles the request to delete a single session associated with the authenticated user.

func GetAccount

func GetAccount(c *fiber.Ctx) error

GetAccount handles the request to retrieve the currently authenticated user's account details.

func GetAccountEmail

func GetAccountEmail(c *fiber.Ctx) error

func GetConnection

func GetConnection(c *fiber.Ctx) error

GetConnection handles the request to retrieve a single connection for the authenticated user.

func GetSession

func GetSession(c *fiber.Ctx) error

GetSession handles the request to retrieve a single session associated with the authenticated user.

func ListConnections

func ListConnections(c *fiber.Ctx) error

ListConnections handles the request to list all connections for the authenticated user.

func ListSessions

func ListSessions(c *fiber.Ctx) error

ListSessions handles the request to retrieve all sessions associated with the authenticated user.

func UpdateConnectionPassword

func UpdateConnectionPassword(c *fiber.Ctx) error

func UpdateProfile

func UpdateProfile(c *fiber.Ctx) error

func UpdateProfileImages

func UpdateProfileImages(c *fiber.Ctx) error

Types

type UpdateConnectionPasswordDTO

type UpdateConnectionPasswordDTO struct {
	OldPassword string `json:"old_password"`
	NewPassword string `json:"new_password"`
}

type UpdateProfileDTO

type UpdateProfileDTO struct {
	DisplayName string `json:"display_name" validate:"omitempty,min=3,max=32,notblank"`
	Username    string `json:"username" validate:"omitempty,min=3,max=32,lowercase,ascii,notblank"`
}

Jump to

Keyboard shortcuts

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