Documentation ¶
Index ¶
- type Store
- func (s Store) Create(ctx context.Context, att models.Attachment, data io.Reader) error
- func (s Store) Open(name string) (fs.File, error)
- func (s Store) Path(ctx context.Context, att models.Attachment) (string, error)
- func (s Store) Reader(ctx context.Context, att models.Attachment) (io.ReadCloser, error)
- func (s Store) Remove(ctx context.Context, att models.Attachment) error
- func (s Store) Size(ctx context.Context) (int64, error)
- func (s Store) Trim(ctx context.Context, size int64, minAge time.Time) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (Store) Reader ¶
func (s Store) Reader(ctx context.Context, att models.Attachment) (io.ReadCloser, error)
Reader implements core.FileStore.
Click to show internal directories.
Click to hide internal directories.