Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultMutexPrefix = "litecron/defaults" DefaultMutexFator = 0.05 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cron ¶
type Cron struct {
MutexConfig *MutexConfig
// contains filtered or unexported fields
}
func InitDefaultCron ¶
func InitDefaultCron(config *MutexConfig) *Cron
func NewCron ¶
func NewCron(config *MutexConfig) *Cron
type MutexConfig ¶
type MutexConfig struct {
RedisConfig *RedisConfig
Prefix string
Factor float64
}
type RedisConfig ¶
type RedisConfig struct {
DNS string
}
Click to show internal directories.
Click to hide internal directories.