mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-16 11:27:29 -06:00
mess about with media a bit more
This commit is contained in:
parent
6ed16ace85
commit
39aca2025f
14 changed files with 953 additions and 79 deletions
|
|
@ -18,7 +18,16 @@
|
|||
|
||||
package storage
|
||||
|
||||
import "time"
|
||||
|
||||
type Storage interface {
|
||||
StoreFileAt(path string, data []byte) error
|
||||
RetrieveFileFrom(path string) ([]byte, error)
|
||||
}
|
||||
|
||||
type FileInfo struct {
|
||||
Data []byte
|
||||
StorePath string
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue