Versions in this module Expand all Collapse all v1 v1.0.1 Apr 7, 2024 v1.0.0 Dec 16, 2023 Changes in this version + const ImageDataMaxLen + const ImageFormatMaxLen + type Handler interface + Handle func(*Image, Params) (*Image, error) + type HandlerFunc func(*Image, Params) (*Image, error) + func (f HandlerFunc) Handle(im *Image, params Params) (*Image, error) + type HandlerServer struct + Handler Handler + func (srv *HandlerServer) Get(params Params) (*Image, error) + type Image struct + Data []byte + Format string + func (im *Image) MarshalBinary() ([]byte, error) + func (im *Image) UnmarshalBinary(data []byte) error + func (im *Image) UnmarshalBinaryNoCopy(data []byte) error + type ImageError struct + Message string + func (err *ImageError) Error() string + type ParamError struct + Message string + Param string + func (err *ParamError) Error() string + type Params map[string]any + func (params Params) Copy() Params + func (params Params) Empty() bool + func (params Params) Get(key string) (any, error) + func (params Params) GetBool(key string) (bool, error) + func (params Params) GetFloat(key string) (float64, error) + func (params Params) GetInt(key string) (int, error) + func (params Params) GetInt64(key string) (int64, error) + func (params Params) GetParams(key string) (Params, error) + func (params Params) GetString(key string) (string, error) + func (params Params) Has(key string) bool + func (params Params) Keys() []string + func (params Params) Len() int + func (params Params) Set(key string, value any) + func (params Params) String() string + type Server interface + Get func(Params) (*Image, error) + func NewLimitServer(s Server, limit int) Server + type ServerFunc func(Params) (*Image, error) + func (f ServerFunc) Get(params Params) (*Image, error)