summaryrefslogtreecommitdiff
path: root/config
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/config.go6
-rw-r--r--config/config.json2
2 files changed, 4 insertions, 4 deletions
diff --git a/config/config.go b/config/config.go
index 3ca8f84..66533a6 100644
--- a/config/config.go
+++ b/config/config.go
@@ -11,7 +11,7 @@ import (
type Config struct {
Input InputConfig `json:"Input" validate:"required"`
- Converter ConverterConfig `json:"Converter" validate:"required"`
+ Processor ProcessorConfig `json:"Processor" validate:"required"`
Output OutputConfig `json:"Output" validate:"required"`
MaxConcurrentJobs int `json:"MaxConcurrentJobs" validate:"required,min=1"`
ForceRewrite bool `json:"ForceRewrite" validate:"required"`
@@ -72,12 +72,12 @@ type LocalConfig struct {
Path string `json:"Path" validate:"required,min=1"`
}
-type ConverterConfig struct {
+type ProcessorConfig struct {
Type string `json:"Type" validate:"required,oneof=webp"`
Config any `json:"Config" validate:"required"`
}
-func (pc *ConverterConfig) UnmarshalJSON(data []byte) error {
+func (pc *ProcessorConfig) UnmarshalJSON(data []byte) error {
var tmp struct {
Type string `json:"Type"`
Config json.RawMessage `json:"Config"`
diff --git a/config/config.json b/config/config.json
index db4ddd4..acf3e02 100644
--- a/config/config.json
+++ b/config/config.json
@@ -19,7 +19,7 @@
"png"
]
},
- "Converter": {
+ "Processor": {
"Type": "webp",
"Config": {
"Quality": 80,