Documentation ¶
Overview ¶
Package config provide configurations structs for imageopti middleware.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Processor string `json:"processor" yaml:"processor" toml:"processor"` Imaginary ImaginaryProcessorConfig `json:"imaginary,omitempty" yaml:"imaginary,omitempty" toml:"imaginary,omitempty"` // Cache Cache string `json:"cache" yaml:"cache" toml:"cache"` Redis RedisCacheConfig `json:"redis,omitempty" yaml:"redis,omitempty" toml:"redis,omitempty"` File FileCacheConfig `json:"file,omitempty" yaml:"file,omitempty" toml:"file,omitempty"` }
Config the plugin configuration.
type FileCacheConfig ¶
type FileCacheConfig struct {
Path string `json:"path" yaml:"path" toml:"path"`
}
FileCacheConfig define file cache system configurations.
type ImaginaryProcessorConfig ¶
type ImaginaryProcessorConfig struct {
URL string `json:"url" yaml:"url" toml:"url"`
}
ImaginaryProcessorConfig define imaginary image processor configurations.
type RedisCacheConfig ¶
type RedisCacheConfig struct {
URL string `json:"url" yaml:"url" toml:"url"`
}
RedisCacheConfig define redis cache system configurations.
Click to show internal directories.
Click to hide internal directories.