{"id":19292398,"url":"https://github.com/foolin/gosupervisor","last_synced_at":"2025-04-22T07:31:38.548Z","repository":{"id":57484481,"uuid":"68507839","full_name":"foolin/gosupervisor","owner":"foolin","description":"golang client for the supervisord XML-RPC interface.","archived":false,"fork":false,"pushed_at":"2017-01-14T03:45:02.000Z","size":3,"stargazers_count":12,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T20:32:48.227Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/foolin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-18T08:30:54.000Z","updated_at":"2022-12-07T08:53:54.000Z","dependencies_parsed_at":"2022-08-26T12:24:01.218Z","dependency_job_id":null,"html_url":"https://github.com/foolin/gosupervisor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foolin%2Fgosupervisor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foolin%2Fgosupervisor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foolin%2Fgosupervisor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foolin%2Fgosupervisor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foolin","download_url":"https://codeload.github.com/foolin/gosupervisor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250195033,"owners_count":21390230,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T22:30:36.576Z","updated_at":"2025-04-22T07:31:38.281Z","avatar_url":"https://github.com/foolin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"golang client for the supervisord(http://www.supervisord.org/api.html) XML-RPC interface\n\n# Getting started\n\n    go get github.com/foolin/gosupervisor\n\n# Supervisor configuration\n/etc/supervisord.conf\n```ini\n[inet_http_server]         ; inet (TCP) server disabled by default\nport=127.0.0.1:9001\n```\n\n# Exmaples\n\n```go\n\n    import (\n        \"github.com/foolin/gosupervisor\"\n        \"log\"\n        \"time\"\n    )\n    \n    func main(){\n        rpcUrl := \"http://127.0.0.1:9001/RPC2\"\n        rpc := gosupervisor.New(rpcUrl)\n    \n        version, err := rpc.GetAPIVersion()\n        println(\"GetAPIVersion\")\n        printf(\"ret: %v, error: %v\", version, err)\n    \n        stopProgress, err := rpc.StopProcess(\"servername1\", true)\n        println(\"StopProcess\")\n        printf(\"ret: %v, error: %v\", stopProgress, err)\n    \n        startProcess, err := rpc.StartProcess(\"servername1\", true)\n        println(\"StartProcess\")\n        printf(\"ret: %v, error: %v\", startProcess, err)\n    \n        list, _ := rpc.GetAllProcessInfo()\n        println(\"GetAllProcessInfo\")\n        printf(\"name\\t\\tstart\\t\\tdescription\")\n        for _, v := range list{\n            printf(\"%v\\t\\t%v\\t\\t%v\", v.Get(\"name\"), time.Unix(v.Int64(\"start\", 0), 0), v.Get(\"description\"))\n        }\n    }\n    \n    \n    func println(v string)  {\n        log.Printf(\"------------- %v -------------\", v)\n    }\n    \n    func printf(format string, v ...interface{})  {\n        log.Printf(format, v...)\n    }\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoolin%2Fgosupervisor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoolin%2Fgosupervisor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoolin%2Fgosupervisor/lists"}