Documentation ¶ Index ¶ Constants type Local func (Local) Delete(fileKey string) error func (Local) Save(data model.UploadFileData) (string, error) type S3 func (S3) Delete(fileKey string) error func (S3) Save(data model.UploadFileData) (string, error) type Storer Constants ¶ View Source const ( StorageProviderLocal = "local" StorageProviderS3 = "s3" ) Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Local ¶ type Local struct{} func (Local) Delete ¶ func (Local) Delete(fileKey string) error func (Local) Save ¶ func (Local) Save(data model.UploadFileData) (string, error) type S3 ¶ type S3 struct{} func (S3) Delete ¶ func (S3) Delete(fileKey string) error func (S3) Save ¶ func (S3) Save(data model.UploadFileData) (string, error) type Storer ¶ added in v1.4.1 type Storer interface { // Save saves a file via a storage provider Save(model.UploadFileData) (string, error) // Delete removes a file via a storage provider Delete(string) error } Storer handles file saving/deleting Source Files ¶ View all Source files local.go s3.go storer.go Click to show internal directories. Click to hide internal directories.