Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CduleConfig ¶
type CduleConfig struct { // Whether to run scheduler immediately at startup; by default only run // after each tick (e.g if ticker is 60 seconds then first run has to wait // 60 seconds). RunImmediately bool `yaml:"runimmediately"` // The tick/refresh rate of workers, as a string acceptable by time.ParseDuration() TickDuration string `yaml:"tickduration"` Cduletype string `yaml:"cduletype"` Dburl string `yaml:"dburl"` // underscore creates the problem for e.f. db_url, so should be avoided Cduleconsistency string `yaml:"cduleconsistency"` Loglevel logger.LogLevel `yaml:"loglevel"` // gorm log level WatchPast bool `yaml:"watchpast"` TablePrefix string `yaml:"tableprefix"` }
CduleConfig cdule configuration
func NewDefaultConfig ¶
func NewDefaultConfig() *CduleConfig
func ResolveConfig ¶
func ResolveConfig(config ...*CduleConfig) *CduleConfig
Click to show internal directories.
Click to hide internal directories.