Documentation ¶
Index ¶
- type FileRepository
- func (r *FileRepository) Clear() error
- func (r *FileRepository) Create(file *domain.File) (uint, error)
- func (r *FileRepository) DeleteOne(ID int) (int, error)
- func (r *FileRepository) GetAllIds() []domain.FileTypeIds
- func (r *FileRepository) GetByID(ID int) (*domain.File, error)
- func (r *FileRepository) GetIds(fType string) []int
- type Files
- type Repositories
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileRepository ¶
type FileRepository struct {
// contains filtered or unexported fields
}
func NewFileRepository ¶
func NewFileRepository(db *sqlx.DB) *FileRepository
func (*FileRepository) Clear ¶
func (r *FileRepository) Clear() error
func (*FileRepository) GetAllIds ¶
func (r *FileRepository) GetAllIds() []domain.FileTypeIds
func (*FileRepository) GetIds ¶
func (r *FileRepository) GetIds(fType string) []int
type Repositories ¶
type Repositories struct {
Files Files
}
func NewRepositories ¶
func NewRepositories(db *sqlx.DB) *Repositories
Click to show internal directories.
Click to hide internal directories.