repository

package
v0.0.0-...-a8cf2a2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileRepository

type FileRepository interface {
	GetAll() ([]models.File, error)
	GetById(id int64) (*models.File, error)
	Create(file *models.File) error
	Update(file *models.File) error
	Delete(id int64) error
}

type UserRepository

type UserRepository interface {
	GetAll() ([]models.User, error)
	GetById(id int64) (*models.User, error)
	Create(user *models.User) error
	Update(user *models.User) error
	Delete(id int64) error
}

type UserRepositoryImpl

type UserRepositoryImpl struct {
	// contains filtered or unexported fields
}

func (*UserRepositoryImpl) Create

func (r *UserRepositoryImpl) Create(user *models.User) error

func (*UserRepositoryImpl) Delete

func (r *UserRepositoryImpl) Delete(id int64) error

func (*UserRepositoryImpl) GetAll

func (r *UserRepositoryImpl) GetAll() ([]models.User, error)

func (*UserRepositoryImpl) GetById

func (r *UserRepositoryImpl) GetById(id int64) (*models.User, error)

func (*UserRepositoryImpl) Update

func (r *UserRepositoryImpl) Update(user *models.User) error

Jump to

Keyboard shortcuts

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