controller

package
v0.0.0-...-c44b3c4 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidUsernameOrPassword = errors.New("wrong Username or Password")
	ErrUserAlreadyExist          = errors.New("user already exist")
	ErrUserDoesNotExist          = errors.New("user does not exist")
)

Functions

func ChangeUserPassword

func ChangeUserPassword(info *requestschemas.ChangeUserPassword, userId int64) error

func CreateEntity

func CreateEntity(r *requestschemas.CreateEntity, creator databasemodels.User) error

func CreateUrl

func CreateUrl(r *requestschemas.CreateURL, creator databasemodels.User) (string, error)

func CreateUser

func CreateUser(info *requestschemas.Register, admin bool) error

func DeleteEntity

func DeleteEntity(id int64) error

func DeleteUrl

func DeleteUrl(id int64, user databasemodels.User) error

func ListEntities

func ListEntities(limit, offset int) (*responseschemas.ListEntities, error)

func ListUrls

func ListUrls(user databasemodels.User, limit, offset int) (*responseschemas.ListUrls, error)

func ListUsers

func ListUsers(limit, offset int) (*responseschemas.UserList, error)

func Login

Types

This section is empty.

Jump to

Keyboard shortcuts

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