Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobWrapper ¶
type JobWrapper struct { ID cron.EntryID Kcron *Kcron Name string CronStr string Func func() Job cron.Job }
JobWarpper is a job warpper
type Kcron ¶
type Kcron struct {
// contains filtered or unexported fields
}
Kcron is main struct
type NodePool ¶
type NodePool struct { NodeID string Driver driver.Driver // contains filtered or unexported fields }
NodePool is a node pool
func (*NodePool) InitPoolGrabService ¶
func (np *NodePool) InitPoolGrabService()
func (*NodePool) PickNodeByJobName ¶
PickNodeByJobName : 使用一致性hash算法根据任务名获取一个执行节点
type Option ¶
type Option struct { WorkerName string Driver driver.Driver Logger baselogger.KcronLogger }
func SetLogger ¶
func SetLogger(l baselogger.KcronLogger) *Option
func SetWorkerName ¶
func (*Option) MergeOption ¶
func (*Option) SetLogger ¶
func (c *Option) SetLogger(l baselogger.KcronLogger) *Option
func (*Option) SetWorkerName ¶
Click to show internal directories.
Click to hide internal directories.