Documentation ¶
Index ¶
- type CacheConfig
- type Config
- type DerivativesConfig
- type FeaturesAppend
- type FeaturesConfig
- type FeaturesDetails
- type FeaturesToggle
- type FlickrConfig
- type GraphicsConfig
- type ImagesConfig
- type LevelConfig
- type PaletteConfig
- type PrimitiveConfig
- type ProfileConfig
- type ServicesConfig
- type ServicesToggle
- type SourceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheConfig ¶
type Config ¶
type Config struct { Level LevelConfig `json:"level"` Profile ProfileConfig `json:"profile"` Graphics GraphicsConfig `json:"graphics"` Features FeaturesConfig `json:"features"` Images ImagesConfig `json:"images"` Derivatives DerivativesConfig `json:"derivatives"` Flickr FlickrConfig `json:"flickr,omitempty"` Primitive PrimitiveConfig `json:"primitive,omitempty"` Palette PaletteConfig `json:"palette,omitempty"` Custom interface{} `json:"custom,omitempty"` }
func NewConfigFromBytes ¶
func NewConfigFromEnv ¶
func NewConfigFromFile ¶
func NewConfigFromFlag ¶
type DerivativesConfig ¶
type DerivativesConfig struct {
Cache CacheConfig `json:"cache"`
}
type FeaturesAppend ¶
type FeaturesAppend map[string]map[string]FeaturesDetails
type FeaturesConfig ¶
type FeaturesConfig struct { Enable FeaturesToggle `json:"enable"` Disable FeaturesToggle `json:"disable"` Append FeaturesAppend `json:"append"` }
type FeaturesDetails ¶
type FeaturesToggle ¶
type FlickrConfig ¶
type GraphicsConfig ¶
type GraphicsConfig struct {
Source SourceConfig `json:"source"`
}
type ImagesConfig ¶
type ImagesConfig struct { Source SourceConfig `json:"source"` Cache CacheConfig `json:"cache"` }
type LevelConfig ¶
type LevelConfig struct {
Compliance string `json:"compliance"`
}
type PaletteConfig ¶
type PaletteConfig struct { Extruder SourceConfig `json:"extruder"` Grid SourceConfig `json:"grid"` Palettes []SourceConfig `json:"palettes"` }
type PrimitiveConfig ¶
type PrimitiveConfig struct {
MaxIterations int `json:"max_iterations"`
}
type ProfileConfig ¶
type ProfileConfig struct {
Services ServicesConfig `json:"services"`
}
type ServicesConfig ¶
type ServicesConfig struct {
Enable ServicesToggle `json:"enable"`
}
type ServicesToggle ¶
type ServicesToggle []string
type SourceConfig ¶
type SourceConfig struct { Name string `json:"name"` Path string `json:"path,omitempty"` Prefix string `json:"prefix,omitempty"` Region string `json:"region,omitempty"` Credentials string `json:"credentials,omitempty"` Tmpdir string `json:"tmpdir,omitempty"` Count int `json:"count,omitempty"` // used by PaletteConfig.Extruder }
Click to show internal directories.
Click to hide internal directories.