release: v0.6.1
This commit is contained in:
commit
877eef7f07
118 files changed
+46315
No files matched your search
@@ -0,0 +1,15 @@
|
||||
package storage_interfaces
|
||||
|
||||
import "context"
|
||||
|
||||
// MediaStorage defines the contract for storing and retrieving media files
|
||||
type MediaStorage interface {
|
||||
// Store saves the media data and returns a public URL to access it
|
||||
Store(ctx context.Context, data []byte, fileName string, contentType string) (string, error)
|
||||
|
||||
// Delete removes the stored media
|
||||
Delete(ctx context.Context, fileName string) error
|
||||
|
||||
// GetURL returns the public URL for accessing the media
|
||||
GetURL(ctx context.Context, fileName string) (string, error)
|
||||
}
|
||||
Reference in new issue
Block a user