Documentation
¶
Overview ¶
Package config the configuration
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Cache
Cache cache.Options `yaml:"cache"`
// Fetch
Fetch fetch.Options `yaml:"fetch"`
// Plugin
Plugin PluginConfig `yaml:"plugin"`
// JS
JS js.Options `yaml:"js"`
}
Config The cloudcat configuration
func FromContext ¶
FromContext returns the Config stored in ctx by NewContext, or the default Config if there is none.
func ReadConfig ¶
ReadConfig read configuration from the file. If the configuration file is not existing then create it with default configuration.
type PluginConfig ¶
type PluginConfig struct {
Path string `yaml:"path"`
}
Click to show internal directories.
Click to hide internal directories.