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"`
// 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.
Click to show internal directories.
Click to hide internal directories.