Versions in this module Expand all Collapse all v0 v0.1.6 Sep 10, 2020 Changes in this version + type Encoder interface + Encode func(io.Writer, image.Image) error + MimeType func() string + Types func() []string + func EncoderForType(fileType string) Encoder + type JpegEncoder struct + func (e JpegEncoder) Encode(w io.Writer, i image.Image) error + func (e JpegEncoder) MimeType() string + func (e JpegEncoder) Types() []string + type Manager interface + Get func(Request, image.Image) ([]byte, error) + GetStored func(Request) []byte + type PngEncoder struct + func (e PngEncoder) Encode(w io.Writer, i image.Image) error + func (e PngEncoder) MimeType() string + func (e PngEncoder) Types() []string + type Request struct + ETag string + Encoder Encoder + ImagePath string + Resolution resolution.Resolution + Username string + type SimpleManager struct + func NewSimpleManager(storage storage.Storage, logger log.Logger) SimpleManager + func (s SimpleManager) Get(r Request, img image.Image) ([]byte, error) + func (s SimpleManager) GetStored(r Request) []byte