node

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Groups

type Groups map[string]*cronsun.Group

type Jobs

type Jobs map[string]*cronsun.Job

type Node

type Node struct {
	*cronsun.Client
	*cronsun.Node
	*cron.Cron
	// contains filtered or unexported fields
}

Node 执行 cron 命令服务的结构体

func NewNode

func NewNode(cfg *conf.Conf) (n *Node, err error)

func (*Node) Register

func (n *Node) Register() (err error)

注册到 /cronsun/node/xx

func (*Node) Run

func (n *Node) Run() (err error)

启动服务

func (*Node) Stop

func (n *Node) Stop(i interface{})

停止服务

Directories

Path Synopsis
This library implements a cron spec parser and runner.
This library implements a cron spec parser and runner.

Jump to

Keyboard shortcuts

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