Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { List(path string, recursive bool) ([]string, error) Stat(filepath string) (FileInfo, error) Read(filepath string) ([]byte, error) ReadString(filepath string) (string, error) ReadStream(filepath string) (FileStream, error) Write(filepath string, data []byte) error WriteString(filepath string, content string) error WriteStream(filepath string, stream io.ReadCloser, length int64) error Move(filepathSrc string, filepathDst string) error Delete(filepath string) error }
type FileStream ¶
type FileStream struct { Size int64 ContentType string Content io.ReadCloser }
Click to show internal directories.
Click to hide internal directories.