repository

package
v0.0.0-...-66c7d48 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {

	//user interface
	GetUsers(limit, page int) ([]*models.User, error)
	GetUserByUsername(username string) (*models.User, error)
	GetUserByEmail(email string) (*models.User, error)
	UsernameExists(username string) error
	EmailExists(email string) error
	DeleteUser(username string) error
	CreateUser(user *models.User) (*models.User, error)
	UpdateUser(username string, update *models.User) (*models.User, error)

	// file interface
	InsertFileData(file *models.File) (*models.File, error)
	GetFileByFileName(filename string) (*models.File, error)
	AllFilesByUser(username string, limit, page int) ([]*models.File, error)
	FileNameExists(fileName string) error
	FileDelete(fileName string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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