Documentation ¶
Index ¶
- type GetTableNameFunc
- type PersistRepository
- func (r *PersistRepository) Add(ctx context.Context, tx *gorm.DB, file *models.File, method GetTableNameFunc) error
- func (r *PersistRepository) GetTx() *gorm.DB
- func (r *PersistRepository) Load(ctx context.Context, file *models.File, method GetTableNameFunc) error
- func (r *PersistRepository) LoadByHash(ctx context.Context, file *models.File, method GetTableNameFunc) error
- func (r *PersistRepository) LoadUploaded(ctx context.Context, file *models.File, method GetTableNameFunc) error
- func (r *PersistRepository) Remove(ctx context.Context, tx *gorm.DB, file *models.File, method GetTableNameFunc) error
- func (r *PersistRepository) Update(ctx context.Context, tx *gorm.DB, file *models.File, method GetTableNameFunc) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetTableNameFunc ¶
GetTableNameFunc is a function that returns the table name for a file
type PersistRepository ¶
type PersistRepository struct {
// contains filtered or unexported fields
}
func New ¶
func New() *PersistRepository
func (*PersistRepository) Add ¶
func (r *PersistRepository) Add(ctx context.Context, tx *gorm.DB, file *models.File, method GetTableNameFunc) error
func (*PersistRepository) GetTx ¶
func (r *PersistRepository) GetTx() *gorm.DB
func (*PersistRepository) Load ¶
func (r *PersistRepository) Load(ctx context.Context, file *models.File, method GetTableNameFunc) error
func (*PersistRepository) LoadByHash ¶
func (r *PersistRepository) LoadByHash(ctx context.Context, file *models.File, method GetTableNameFunc) error
func (*PersistRepository) LoadUploaded ¶
func (r *PersistRepository) LoadUploaded(ctx context.Context, file *models.File, method GetTableNameFunc) error
Click to show internal directories.
Click to hide internal directories.