chore: custom error

This commit is contained in:
2026-03-02 22:38:28 +01:00
parent 6c1387c1cd
commit 2491d21963
19 changed files with 363 additions and 60 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,
}
}