Git Product home page Git Product logo

wixb50 / gosuv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tiezhong2004/gosuv

0.0 1.0 0.0 12.47 MB

GoSuv是GO语言重写的类supervisor的一个进程管理程序,在github.com/codeskyblue/gosuv基础上增加了环境变量的配置以及主机名称的配置等,并用rice封装对静态文件进行了封装,单文件运行,简单易用

License: MIT License

Go 28.20% Shell 4.74% JavaScript 57.44% CSS 0.35% HTML 9.26%

gosuv's Introduction

概述

GoSuv是GO语言重写的类supervisor的一个带web界面的进程管理程序,单文件运行,简单易用,界面美感十足且对用户友好。

特点

  • 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

二次开发

$ go get # 下载依赖
$ go generate  # 打包静态资源生成代码
$ goreleaser release --skip-publish  # 打包发布

贡献人

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.