Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrImgDecode = errors.New("could not decode image") ErrNoImage = errors.New("no image found") StatusCreated = "CREATED" StatusFinished = "FINISHED" StatusFailed = "FAILED" )
Functions ¶
This section is empty.
Types ¶
type ImageService ¶
type ImageService interface {
Create(ctx context.Context, raw *[]byte) (*Image, error)
Read(ctx context.Context, imgId string) (*Image, error)
Delete(ctx context.Context, imgId string) error
ScheduleResizeJob(ctx context.Context, imgId string, width, height uint) (*ResizeJob, error)
GetResizeJob(ctx context.Context, jobId uint64) (*ResizeJob, error)
}
type ResizeService ¶
Click to show internal directories.
Click to hide internal directories.