core

package
v0.0.0-...-081de99 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const RunConfFile string = "conf.json"
View Source
const RunConfPath string = "/usr/local/etc/runner/conf/"

Variables

This section is empty.

Functions

func ExecCommand

func ExecCommand(name string, resultFunc func())

func GetRuntimeMessage

func GetRuntimeMessage() utils.Message

func Runner

func Runner()

func UpdateRuntimeMessage

func UpdateRuntimeMessage(message utils.Message)

Types

type RunConf

type RunConf struct {
	Name   string `json:"name"`
	Remark string `json:"remark"`
	Ver    string `json:"ver"`
	Cmd    string `json:"cmd"`
	Incl   string `json:"incl"`
	Status string `json:"status"`
	Pid    string `json:"pid"`
	Result string `json:"result"`
	LRT    string `json:"lrt"`
}

type RunConfigs

type RunConfigs struct {
	Configs []RunConf `json:"configs"`
}

Jump to

Keyboard shortcuts

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