Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encoder ¶
type Encoder interface {
Encode(m image.Image, w http.ResponseWriter) error
}
Encoder describes any type that can encode with the image and response writer.
type WrapEncoderFunc ¶
type WrapEncoderFunc func(m image.Image, w http.ResponseWriter) error
WrapEncoderFunc type is an adapter to allow the use of ordinary functions as image Encoders. If f is a function with the appropriate signature, WrapEncoderFunc(f) is a Encoder that calls f.
func (WrapEncoderFunc) Encode ¶
func (f WrapEncoderFunc) Encode(m image.Image, w http.ResponseWriter) error
Encode calls f(m, w).
Click to show internal directories.
Click to hide internal directories.