Documentation ¶
Index ¶
- type FileFastBackend
- func (f *FileFastBackend) Delete(c context.Context, identifier string) error
- func (f *FileFastBackend) Retrieve(c context.Context, identifier string) (io.ReadCloser, error)
- func (f *FileFastBackend) Save(c context.Context, identifier string, r io.ReadCloser) (int64, error)
- func (f *FileFastBackend) SaveTTL(c context.Context, identifier string, r io.ReadCloser, ttl time.Duration) (int64, error)
- type S3Config
- type S3FastBackend
- func (s *S3FastBackend) Delete(c context.Context, identifier string) error
- func (s *S3FastBackend) Retrieve(c context.Context, identifier string) (io.ReadCloser, error)
- func (s *S3FastBackend) Save(c context.Context, identifier string, r io.ReadCloser) (int64, error)
- func (s *S3FastBackend) SaveTTL(c context.Context, identifier string, r io.ReadCloser, ttl time.Duration) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileFastBackend ¶
type FileFastBackend struct {
// contains filtered or unexported fields
}
FileFastBackend is a file-backed app.FastBackend implementation with support for TTL
func NewFileFastBackend ¶
func NewFileFastBackend(dataDir string) (*FileFastBackend, error)
func (*FileFastBackend) Delete ¶
func (f *FileFastBackend) Delete(c context.Context, identifier string) error
func (*FileFastBackend) Retrieve ¶
func (f *FileFastBackend) Retrieve(c context.Context, identifier string) (io.ReadCloser, error)
func (*FileFastBackend) Save ¶
func (f *FileFastBackend) Save(c context.Context, identifier string, r io.ReadCloser) (int64, error)
type S3FastBackend ¶
type S3FastBackend struct {
// contains filtered or unexported fields
}
func NewS3FastBackend ¶
func NewS3FastBackend(conf S3Config) (*S3FastBackend, error)
func (*S3FastBackend) Delete ¶
func (s *S3FastBackend) Delete(c context.Context, identifier string) error
func (*S3FastBackend) Retrieve ¶
func (s *S3FastBackend) Retrieve(c context.Context, identifier string) (io.ReadCloser, error)
func (*S3FastBackend) Save ¶
func (s *S3FastBackend) Save(c context.Context, identifier string, r io.ReadCloser) (int64, error)
Click to show internal directories.
Click to hide internal directories.