chore: custom error

This commit is contained in:
2026-03-02 13:39:34 +01:00
parent abfddca518
commit 19b9532f21
21 changed files with 364 additions and 61 deletions
+17 -5
View File
@@ -1,14 +1,26 @@
package images
import "os"
import (
"os"
type Service struct {
fs fileSystem
"github.com/valkey-io/valkey-go"
)
type Options struct {
Width int // max width, 0 is unlimited
Height int // max Height, 0 is unlimited
Quality int // quality of the output jpeg
}
func New(fs fileSystem) *Service {
type Service struct {
fs fileSystem
cache valkey.Client
}
func New(fs fileSystem, cache valkey.Client) *Service {
return &Service{
fs: fs,
fs: fs,
cache: cache,
}
}