proto

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2017 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Data = make(Mdata)
View Source
var Days = [...]string{
	"Sunday",
	"Monday",
	"Tuesday",
	"Wednesday",
	"Thursday",
	"Friday",
	"Saturday",
}
View Source
var Months = [...]string{
	"January",
	"February",
	"March",
	"April",
	"May",
	"June",
	"July",
	"August",
	"September",
	"October",
	"November",
	"December",
}

Functions

This section is empty.

Types

type ClientConf

type ClientConf struct {
	State int
	Addr  string
	Mail  string
}

type CrontabArgs

type CrontabArgs struct {
	Weekday string
	Month   string
	Day     string
	Hour    string
	Minute  string
}

type MailArgs

type MailArgs struct {
	Host string
	User string
	Pass string
	Port string
}

type Mdata

type Mdata map[string]*TaskArgs

type TaskArgs

type TaskArgs struct {
	Id            string
	Name          string
	Command       string
	State         int // 0/1/2
	Args          string
	Create        int64
	LastCostTime  int64
	LastExecTime  int64
	Timeout       int64
	NumberProcess int32
	MailTo        string
	MaxConcurrent int    // 脚本最大并发量
	OpTimeout     string // email/kill/email_and_kill/ignore
	C             CrontabArgs
}

Jump to

Keyboard shortcuts

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