Documentation
¶
Index ¶
- type FileRepoHelper
- func (h *FileRepoHelper) Add(ctx context.Context, file *models.File) (err error)
- func (h *FileRepoHelper) GetTableNameByHash() filerepo.GetTableNameFunc
- func (h *FileRepoHelper) GetTableNameById() filerepo.GetTableNameFunc
- func (h *FileRepoHelper) Remove(ctx context.Context, file *models.File) error
- func (h *FileRepoHelper) Update(ctx context.Context, file *models.File) error
- type FileTableShardingConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileRepoHelper ¶
type FileRepoHelper struct {
// contains filtered or unexported fields
}
func New ¶
func New(fileRepo repoiface.FileRepository, config FileTableShardingConfig) *FileRepoHelper
func (*FileRepoHelper) GetTableNameByHash ¶
func (h *FileRepoHelper) GetTableNameByHash() filerepo.GetTableNameFunc
func (*FileRepoHelper) GetTableNameById ¶
func (h *FileRepoHelper) GetTableNameById() filerepo.GetTableNameFunc
type FileTableShardingConfig ¶
Click to show internal directories.
Click to hide internal directories.