Documentation ¶
Index ¶
- type FilesRepo
- func (r *FilesRepo) AddDownload(ctx context.Context, id string) error
- func (r *FilesRepo) Create(ctx context.Context, f *models.File) error
- func (r *FilesRepo) Delete(ctx context.Context, id string) error
- func (r *FilesRepo) Exists(ctx context.Context, id string) (bool, error)
- func (r *FilesRepo) Get(ctx context.Context, id string) (*models.File, error)
- type FoldersRepo
- func (r *FoldersRepo) Create(ctx context.Context, f *models.Folder) error
- func (r *FoldersRepo) Delete(ctx context.Context, folderID string) error
- func (r *FoldersRepo) DeleteExpired(ctx context.Context) error
- func (r *FoldersRepo) Get(ctx context.Context, id string) (*models.Folder, error)
- func (r *FoldersRepo) GetBySpace(ctx context.Context, spaceID string, pagination *models.Pagination) ([]*models.Folder, error)
- func (r *FoldersRepo) Update(ctx context.Context, f *models.Folder) error
- type Repo
- type SpacesRepo
- func (r *SpacesRepo) Create(ctx context.Context, s *models.Space) error
- func (r *SpacesRepo) Delete(ctx context.Context, spaceID string) error
- func (r *SpacesRepo) GetAll(ctx context.Context) ([]*models.Space, error)
- func (r *SpacesRepo) GetAllByUsername(ctx context.Context, username string) ([]*models.Space, error)
- func (r *SpacesRepo) GetByName(ctx context.Context, name string) (*models.Space, error)
- func (r *SpacesRepo) Update(ctx context.Context, s *models.Space) error
- type UsersRepo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilesRepo ¶
type FilesRepo struct {
// contains filtered or unexported fields
}
func (*FilesRepo) AddDownload ¶
type FoldersRepo ¶
type FoldersRepo struct {
// contains filtered or unexported fields
}
func (*FoldersRepo) Delete ¶
func (r *FoldersRepo) Delete(ctx context.Context, folderID string) error
func (*FoldersRepo) DeleteExpired ¶
func (r *FoldersRepo) DeleteExpired(ctx context.Context) error
func (*FoldersRepo) GetBySpace ¶ added in v1.1.4
func (r *FoldersRepo) GetBySpace(ctx context.Context, spaceID string, pagination *models.Pagination) ([]*models.Folder, error)
type Repo ¶
type Repo struct { Users *UsersRepo Spaces *SpacesRepo Folders *FoldersRepo Files *FilesRepo }
type SpacesRepo ¶
type SpacesRepo struct {
// contains filtered or unexported fields
}
func (*SpacesRepo) Delete ¶ added in v1.1.1
func (r *SpacesRepo) Delete(ctx context.Context, spaceID string) error
func (*SpacesRepo) GetAllByUsername ¶
type UsersRepo ¶
type UsersRepo struct {
// contains filtered or unexported fields
}
func (*UsersRepo) CreateOrUpdate ¶
TODO rewrite this when ent supports the Save method on Update; until then we have to do an extra select https://github.com/ent/ent/issues/2600
func (*UsersRepo) GetByRememberToken ¶
Click to show internal directories.
Click to hide internal directories.