proto

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 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 DependsArgs added in v1.3.2

type DependsArgs struct {
	TaskId string
	Dpds   []MScript
}

type MScript added in v1.3.2

type MScript struct {
	Dest    string
	From    string
	TaskId  string
	Command string
	Args    string
	Timeout int64
	// Done       bool
	// LogContent []byte `json:"-"`
	Queue []MScriptContent
}

type MScriptContent added in v1.3.2

type MScriptContent struct {
	TaskTime   int64
	Done       bool
	Err        string `json:"-"`
	LogContent []byte `json:"-"`
}

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
	Depends            []MScript
	State              int // 0/1/2
	Args               string
	Create             int64
	LastCostTime       int64
	LastExecTime       int64
	Timeout            int64
	NumberProcess      int32
	UnexpectedExitMail bool
	Sync               bool // 脚本是否同步执行
	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