Documentation
¶
Index ¶
- type CacheStore
- func (s *CacheStore) Get(ctx context.Context, path string) (content []byte, contentType string, err error)
- func (s *CacheStore) GetURL(path string, expire time.Duration) (string, error)
- func (s *CacheStore) Put(ctx context.Context, path string, contentType string, content []byte) error
- func (s *CacheStore) Remove(ctx context.Context, path string) error
- type FSStore
- func (l *FSStore) Get(ctx context.Context, path string) (content []byte, contentType string, err error)
- func (l *FSStore) GetURL(path string, expire time.Duration) (string, error)
- func (l *FSStore) Put(ctx context.Context, path string, contentType string, content []byte) error
- func (l *FSStore) Remove(ctx context.Context, path string) error
- type MediaStore
- func (s *MediaStore) Get(ctx context.Context, path string) (content []byte, contentType string, err error)
- func (s *MediaStore) GetFormattedMedia(ctx context.Context, path string, format string, gzipContent bool) (content []byte, contentType string, zipped bool, err error)
- func (s *MediaStore) GetURL(path string, expire time.Duration) (string, error)
- func (s *MediaStore) Put(ctx context.Context, path string, contentType string, content []byte) error
- func (s *MediaStore) Remove(ctx context.Context, path string) error
- func (s *MediaStore) ServeMedia(ctx context.Context, path string, format string, w http.ResponseWriter, ...)
- type S3Store
- func (s *S3Store) Get(ctx context.Context, path string) (content []byte, contentType string, err error)
- func (s *S3Store) GetURL(path string, expire time.Duration) (string, error)
- func (s *S3Store) Put(ctx context.Context, path string, contentType string, content []byte) error
- func (s *S3Store) Remove(ctx context.Context, path string) error
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheStore ¶
type CacheStore struct {
// contains filtered or unexported fields
}
type FSStore ¶
type FSStore struct {
// contains filtered or unexported fields
}
type MediaStore ¶
type MediaStore struct {
// contains filtered or unexported fields
}
func (*MediaStore) GetFormattedMedia ¶
func (*MediaStore) ServeMedia ¶
func (s *MediaStore) ServeMedia(ctx context.Context, path string, format string, w http.ResponseWriter, r *http.Request, allowGzipping bool)
type S3Store ¶
type S3Store struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.