cronmgr

package
v0.0.0-...-eae78d9 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CronMgr

type CronMgr struct {
	// contains filtered or unexported fields
}

CronMgr ..

func New

func New() *CronMgr

New ...

func (*CronMgr) CronPipeChan

func (m *CronMgr) CronPipeChan() chan string

CronPipeChan ...

func (*CronMgr) Delete

func (m *CronMgr) Delete(pipeid string) error

Delete entry

func (*CronMgr) Start

func (m *CronMgr) Start() error

Start running

func (*CronMgr) UpInsert

func (m *CronMgr) UpInsert(pipe *model.Pipeline) error

UpInsert canbe update/insert/delete entry to entries

type Entry

type Entry struct {
	Schedule    Schedule
	ScheduleStr string
	Next        time.Time
	Prev        time.Time
	Pipeid      string
}

Entry ...

type Interface

type Interface interface {
	Start() error
	UpInsert(pipe *model.Pipeline) error
	Delete(pipeid string) error
	CronPipeChan() chan string
}

Interface ...

type Schedule

type Schedule interface {
	Next(time.Time) time.Time
}

Schedule ...

Jump to

Keyboard shortcuts

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