Documentation ¶
Index ¶
- func New(ctx context.Context, cfg Config) (*i.Imagor, error)
- type Config
- type KVStorage
- func (s *KVStorage) Delete(_ context.Context, image string) error
- func (s *KVStorage) Get(_ *http.Request, image string) (*imagor.Blob, error)
- func (s *KVStorage) Path(image string) (string, bool)
- func (s *KVStorage) Put(_ context.Context, image string, blob *imagor.Blob) (err error)
- func (s *KVStorage) Stat(_ context.Context, image string) (stat *imagor.Stat, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KVStorage ¶
type KVStorage struct { KV *keyval.KeyVal PathPrefix string Blacklists []*regexp.Regexp MkdirPermission os.FileMode WritePermission os.FileMode SaveErrIfExists bool SafeChars string Expiration time.Duration // contains filtered or unexported fields }
KVStorage File Storage implements imagor.Storage interface
func NewKVStorage ¶
New creates FileStorage
Click to show internal directories.
Click to hide internal directories.