├── .gitignore ├── .vscode └── launch.json ├── LICENSE ├── README.md ├── cli ├── commands │ ├── add.go │ ├── attach.go │ ├── index.go │ ├── kill.go │ ├── list.go │ ├── log.go │ ├── remove.go │ ├── restart.go │ ├── show.go │ ├── start.go │ ├── statistics.go │ ├── status.go │ ├── stop.go │ └── update.go ├── config │ └── config.go ├── opts │ └── add.go ├── sir.go ├── template.js └── utils │ ├── file.go │ ├── format.go │ ├── render.go │ └── style.go ├── conf └── app.conf ├── controllers ├── task.go ├── task_info.go └── task_op.go ├── design.png ├── lib ├── config │ └── task.go ├── daemon │ └── daemon.go ├── errors │ └── errors.go ├── httpclient │ └── client.go ├── monitor │ └── monitor.go └── psutil │ ├── psstate.go │ └── psstate_test.go ├── logo.png ├── main.go ├── models ├── statistics.go └── task.go ├── public ├── index.html ├── lib │ ├── bootstrap.min.css │ └── bootstrap.min.js ├── logo.png ├── script.js └── style.css ├── routers └── router.go ├── task ├── task.go ├── task_funcs.go ├── task_manager.go └── task_manager_test.go ├── tests └── default_test.go └── views └── index.tpl /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/README.md -------------------------------------------------------------------------------- /cli/commands/add.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/cli/commands/add.go -------------------------------------------------------------------------------- /cli/commands/attach.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/cli/commands/attach.go -------------------------------------------------------------------------------- /cli/commands/index.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/cli/commands/index.go -------------------------------------------------------------------------------- /cli/commands/kill.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/cli/commands/kill.go -------------------------------------------------------------------------------- /cli/commands/list.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/cli/commands/list.go -------------------------------------------------------------------------------- /cli/commands/log.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/cli/commands/log.go -------------------------------------------------------------------------------- /cli/commands/remove.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/cli/commands/remove.go -------------------------------------------------------------------------------- /cli/commands/restart.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/cli/commands/restart.go -------------------------------------------------------------------------------- /cli/commands/show.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/cli/commands/show.go -------------------------------------------------------------------------------- /cli/commands/start.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/cli/commands/start.go -------------------------------------------------------------------------------- /cli/commands/statistics.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/cli/commands/statistics.go -------------------------------------------------------------------------------- /cli/commands/status.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/cli/commands/status.go -------------------------------------------------------------------------------- /cli/commands/stop.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/cli/commands/stop.go -------------------------------------------------------------------------------- /cli/commands/update.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/cli/commands/update.go -------------------------------------------------------------------------------- /cli/config/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/cli/config/config.go -------------------------------------------------------------------------------- /cli/opts/add.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/cli/opts/add.go -------------------------------------------------------------------------------- /cli/sir.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/cli/sir.go -------------------------------------------------------------------------------- /cli/template.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/cli/template.js -------------------------------------------------------------------------------- /cli/utils/file.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/cli/utils/file.go -------------------------------------------------------------------------------- /cli/utils/format.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/cli/utils/format.go -------------------------------------------------------------------------------- /cli/utils/render.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/cli/utils/render.go -------------------------------------------------------------------------------- /cli/utils/style.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/cli/utils/style.go -------------------------------------------------------------------------------- /conf/app.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/conf/app.conf -------------------------------------------------------------------------------- /controllers/task.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/controllers/task.go -------------------------------------------------------------------------------- /controllers/task_info.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/controllers/task_info.go -------------------------------------------------------------------------------- /controllers/task_op.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/controllers/task_op.go -------------------------------------------------------------------------------- /design.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/design.png -------------------------------------------------------------------------------- /lib/config/task.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/lib/config/task.go -------------------------------------------------------------------------------- /lib/daemon/daemon.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/lib/daemon/daemon.go -------------------------------------------------------------------------------- /lib/errors/errors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/lib/errors/errors.go -------------------------------------------------------------------------------- /lib/httpclient/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/lib/httpclient/client.go -------------------------------------------------------------------------------- /lib/monitor/monitor.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/lib/monitor/monitor.go -------------------------------------------------------------------------------- /lib/psutil/psstate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/lib/psutil/psstate.go -------------------------------------------------------------------------------- /lib/psutil/psstate_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/lib/psutil/psstate_test.go -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/logo.png -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/main.go -------------------------------------------------------------------------------- /models/statistics.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/models/statistics.go -------------------------------------------------------------------------------- /models/task.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/models/task.go -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/public/index.html -------------------------------------------------------------------------------- /public/lib/bootstrap.min.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/public/lib/bootstrap.min.css -------------------------------------------------------------------------------- /public/lib/bootstrap.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/public/lib/bootstrap.min.js -------------------------------------------------------------------------------- /public/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/public/logo.png -------------------------------------------------------------------------------- /public/script.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/public/script.js -------------------------------------------------------------------------------- /public/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/public/style.css -------------------------------------------------------------------------------- /routers/router.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/routers/router.go -------------------------------------------------------------------------------- /task/task.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/task/task.go -------------------------------------------------------------------------------- /task/task_funcs.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/task/task_funcs.go -------------------------------------------------------------------------------- /task/task_manager.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/task/task_manager.go -------------------------------------------------------------------------------- /task/task_manager_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/task/task_manager_test.go -------------------------------------------------------------------------------- /tests/default_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/tests/default_test.go -------------------------------------------------------------------------------- /views/index.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foreversmart/sir/HEAD/views/index.tpl --------------------------------------------------------------------------------