Documentation ¶
Index ¶
- type Files
- func (f *Files) DeleteUnused(olderThan time.Time, limit int) ([]string, error)
- func (f *Files) FinishUpload(fd *types.FileDef, success bool, size int64) (*types.FileDef, error)
- func (f *Files) Get(fid string) (*types.FileDef, error)
- func (f *Files) LinkAttachments(topic string, userId, msgId types.Uid, fids []string) error
- func (f *Files) StartUpload(fd *types.FileDef) error
- type FilesArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Files ¶
type Files struct {
// contains filtered or unexported fields
}
func (*Files) DeleteUnused ¶
DeleteUnused deletes file upload records.
func (*Files) FinishUpload ¶
FinishUpload marks file upload as completed, successfully or otherwise
func (*Files) LinkAttachments ¶
LinkAttachments connects given topic or message to the file record IDs from the list.
type FilesArgs ¶
type FilesArgs struct { DB *pgxpool.Pool Utils *utils.Utils Cfg *config.StorePostgresConfig UGen *types.UidGenerator }
Click to show internal directories.
Click to hide internal directories.