gosuv

command module
v0.0.0-...-50aac95 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: MIT Imports: 37 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

概述

GoSuv是GO语言重写的类supervisor的一个进程管理程序,在codeskyblue/gosuv基础上增加了环境变量的配置以及主机名称的配置等,用rice封装对静态文件进行了封装,单文件运行,简单易用,界面美感十足且对用户友好

特点

  • web 控制与配置页面
    • 启动, 停止, 日志跟踪, 重载配置
    • 实时查看日志
    • 添加服务
    • 编辑服务
    • 删除服务
    • 可视化查看服务对应的cpu与内存
  • HTTP 基本安全认证
  • Github webhook

使用

  • 启动服务

    gosuv start-server
    

查看服务状态

$ gosuv status
PROGRAM NAME            STATUS
test                    running
test_again              stopped

$ gosuv stop test
$ gosuv start test

默认端口 11113 本机测试请使用http://localhost:11313

例子

配置

默认配置文件都放在 $HOME/.gosuv/

  • 项目文件名 : programs.yml
  • 服务器配置文件名: config.yml

验证信息配置

server:
    servername: locllhost
    httpauth:
      enabled: false
      username: uu
      password: pp
      addr: :11313
client:
  server_url: http://localhost:11313

默认日志文件位置

$HOME/.gosuv/log/

http RESTFul 接口

获取或更新

<GET|PUT> /api/programs/:name

添加新的服务

POST /api/programs

删除服务

DELETE /api/programs/:name

待续

内容不是很多,还是推荐能看懂英语的去看英文的README

贡献人

Documentation

Overview

Code generated by rice embed-go; DO NOT EDIT.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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