Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { // CacheClient interface included CacheClient // HasPreview searches preview in cache HasPreview(params *entities.PreviewParams) bool // Clean cache totally Clean() error }
Cache interface
type CacheClient ¶
type CacheClient interface { // Save preview to cache Save(preview *entities.Preview) error // Get preview from cache Get(params *entities.PreviewParams) (*entities.Preview, error) }
CacheClient interface
type ImageLoader ¶
type ImageLoader interface { // Load image from external source containing in request Load(request *entities.Request) ([]byte, *entities.Status) }
ImageLoader interface
type ImageProcessor ¶
type ImageProcessor interface { // Process source image with params from request and return preview response Process(srcImage []byte, request *entities.Request) *entities.Response }
ImageProcessor interface
Click to show internal directories.
Click to hide internal directories.