Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("file not found")
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface {
Name() string
Open(tx *postgres.DBTx, info FileInfo, txControl bool) (FileStream, error)
Put(tx *postgres.DBTx, info FileInfo, r io.Reader, append bool) error
Copy(tx *postgres.DBTx, dst, src FileInfo) error
Delete(tx *postgres.DBTx, info FileInfo) error
}
var Postgres Backend = pg{}
type File ¶
type File struct {
FileStream
FileInfo
}
type FileStream ¶
type FileStream interface {
io.ReadSeeker
io.Closer
}
type Redirector ¶
type Redirector interface {
RedirectURL() string
}
Click to show internal directories.
Click to hide internal directories.