repository

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

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

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilesRepository

type FilesRepository interface {
	Save(file *model.File) error
	FindById(userId string, fileId string) (*model.File, error)
	FindByIdLookup(userId string, fileId string) (fileMetadata *model.FileMetadataLookup, err error)
	FindUsageByUserId(userId string) (usage int64, err error)
	Delete(userId string, fileId string) error
	Update(userId string, file *model.File) error
	FindAll(userId string, page int, size int) (filesPage *model.FilePage, err error)
}

func NewFilesRepository

func NewFilesRepository(ctx context.Context, conn db.MongoConnection) FilesRepository

Jump to

Keyboard shortcuts

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