repository

package
v0.0.0-...-8bc9784 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	FailedField string
	Tag         string
	Value       string
}

func ValidateStruct

func ValidateStruct(user models.User) []*ErrorResponse

type Repository

type Repository struct {
	DB *gorm.DB
}

func (*Repository) CreateUser

func (r *Repository) CreateUser(context *fiber.Ctx) error

func (*Repository) DeleteUser

func (r *Repository) DeleteUser(context *fiber.Ctx) error

func (*Repository) GetUserByID

func (r *Repository) GetUserByID(context *fiber.Ctx) error

func (*Repository) GetUsers

func (r *Repository) GetUsers(context *fiber.Ctx) error

func (*Repository) Login

func (r *Repository) Login(context *fiber.Ctx) error

func (*Repository) SetupRoutes

func (repo *Repository) SetupRoutes(app *fiber.App)

func (*Repository) UpdateUser

func (r *Repository) UpdateUser(context *fiber.Ctx) error

Jump to

Keyboard shortcuts

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