app

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Provides = wire.NewSet(New)

Functions

This section is empty.

Types

type App

type App struct {
	*common.Inject
	// contains filtered or unexported fields
}

func New

func New(i *common.Inject) *App

func (*App) PubSync

func (x *App) PubSync(key string) (err error)

PubSync 发布同步工作

func (*App) Remove

func (x *App) Remove(key string)

Remove 移除任务

func (*App) Run

func (x *App) Run() (err error)

Run 启动服务

func (*App) Set

func (x *App) Set(key string, jobs ...common.Job) (err error)

Set 设置任务发布

func (*App) Start

func (x *App) Start(key string)

Start 启动任务

func (*App) State

func (x *App) State(key string) []cron.Entry

State 任务状态

func (*App) Stop

func (x *App) Stop(key string)

Stop 关闭任务

func (*App) SubState

func (x *App) SubState() (err error)

SubState 返回任务状态

func (*App) SubSync

func (x *App) SubSync() (err error)

SubSync 节点时间对齐

type Sync

type Sync struct {
	Key  string
	Time time.Time
}

Jump to

Keyboard shortcuts

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