package gpaste import ( "io" "time" ) type File struct { ID string `json:"id"` OriginalFilename string `json:"original_filename"` MaxViews uint `json:"max_views"` ExpiresOn time.Time `json:"expires_on"` Body io.ReadCloser } type FileStore interface { Store(f *File) error Get(id string) (*File, error) Delete(id string) error List() ([]string, error) }