cron

package
v0.0.0-...-884beae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

* * @Author: xhzhang * @Date: 2019/9/24 13:39

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CronClient

type CronClient struct {
	Client *cron.Cron
}

func NewCronClient

func NewCronClient() CronClient

func (*CronClient) AddFunction

func (c *CronClient) AddFunction(spec string, execFun func()) (cron.EntryID, error)

func (*CronClient) AddJob

func (c *CronClient) AddJob(spec string, job cron.Job) (cron.EntryID, error)

func (*CronClient) GetEntrys

func (c *CronClient) GetEntrys() []cron.Entry

func (*CronClient) RemoveJob

func (c *CronClient) RemoveJob(id cron.EntryID)

func (*CronClient) StartCron

func (c *CronClient) StartCron()

func (*CronClient) StopCron

func (c *CronClient) StopCron()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL