config

package
v0.0.0-...-e9492ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL