{"id":34179837,"url":"https://github.com/eric-tech01/taurus","last_synced_at":"2026-03-11T07:01:57.206Z","repository":{"id":212947092,"uuid":"731021593","full_name":"eric-tech01/taurus","owner":"eric-tech01","description":"Taurus aims to simplify development and enable the rapid construction of a complete HTTP Server system based on Golang","archived":false,"fork":false,"pushed_at":"2024-01-22T08:06:35.000Z","size":147,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-18T11:59:47.059Z","etag":null,"topics":["go-http-server","go-server","go-server-side","go-taurus","http-server","taurus","web-framework"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eric-tech01.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-13T07:28:12.000Z","updated_at":"2024-03-09T09:50:24.000Z","dependencies_parsed_at":"2024-01-03T09:51:14.867Z","dependency_job_id":"bed3c141-cdb2-47f9-91fe-e3ebf8e27ea8","html_url":"https://github.com/eric-tech01/taurus","commit_stats":null,"previous_names":["eric-tech01/taurus"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/eric-tech01/taurus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eric-tech01%2Ftaurus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eric-tech01%2Ftaurus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eric-tech01%2Ftaurus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eric-tech01%2Ftaurus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eric-tech01","download_url":"https://codeload.github.com/eric-tech01/taurus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eric-tech01%2Ftaurus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30373508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["go-http-server","go-server","go-server-side","go-taurus","http-server","taurus","web-framework"],"created_at":"2025-12-15T13:35:38.113Z","updated_at":"2026-03-11T07:01:57.200Z","avatar_url":"https://github.com/eric-tech01.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Taurus [![GoDoc](https://pkg.go.dev/badge/github.com/eric-tech01/taurus)](https://pkg.go.dev/github.com/eric-tech01/taurus@v0.1.1)\n\n     _(_____)_\n    |__.___.__|\n        | |\n        | |\n        |_|\n\n## Introduction\n\nSimplify and Accelerate Your Development Process.\nTaurus is designed to provide developers with a simplified and efficient solution for building HTTP services and leveraging various utility libraries. With our framework, you can embark on rapid development journeys, ensuring both simplicity and efficiency throughout the entire process.\n\n## Documentation\n\nTo be updated...\n\n## Requirements\n\n- Go version \u003e= 1.18\n\n## TODO\n\n- [x] base http server\n- [x] support rolling logger\n- [x] support toml config file by `--config` param\n- [x] toml support format `taurus.database.mysql`(Only support taurus_mysql format)\n- [x] go compile version api support (by makefile ldflags)\n- [x] mysql support\n- [ ] support obs (minio api)\n- [ ] cron support\n\n## Quick Start\n\n1.  Config file:\n\n```\n[taurus_server_http]\n    Host = \"0.0.0.0\"\n    Port = 8090\n[taurus_log_default]\n    Level = \"debug\"\n    FileName = \"./taurus.log\"\n    MaxBackups = 1\n    MaxSizeInMB = 10 #dd\n    Compress = true\n    LocalTime = true\n```\n\n2. Example code:\n\n```\npackage main\n\nimport (\n\t\"fmt\"\n\t\"time\"\n\tlog \"github.com/eric-tech01/simple-log\"\n\tsjson \"github.com/eric-tech01/simple-json\"\n\t\"github.com/eric-tech01/taurus\"\n\t\"github.com/eric-tech01/taurus/server\"\n\t\"github.com/gin-gonic/gin\"\n)\n\ntype Engine struct {\n\ttaurus.Application\n}\n\nfunc main() {\n\teng := \u0026Engine{}\n\tif err := eng.Startup(\n\t\teng.printLog,\n\t\teng.serverHttp,\n\t); err != nil {\n\t\tpanic(err)\n\t}\n\teng.Run()\n}\n\ntype PostStruct struct {\n\tLevel int `json:\"level\"`\n}\n\nfunc (eng *Engine) serverHttp() error {\n\tfmt.Println(\"start server http\")\n\ts := server.New()\n\n\tdiag := s.Group(\"/taurus/diagnoise\")\n\n\tdiag.POST(\"/setLevel\", func(ctx *gin.Context) {\n\t\tl := \u0026PostStruct{}\n\t\tif err := ctx.Bind(l); err != nil {\n\t\t\tlog.Error(err)\n\t\t\treturn\n\t\t}\n\t\trsp := sjson.New()\n\t\trsp.Set(\"level\", l.Level)\n\t\tlog.Infof(\"set level %d\", l.Level)\n\t\tctx.JSON(200, rsp)\n\t})\n\n\tdiag.GET(\"/status\", func(ctx *gin.Context) {\n\t\tctx.JSON(200, \"normal\")\n\t})\n\tdiag.GET(\"/version\", func(ctx *gin.Context) {\n\t\tctx.JSON(200, \"normal\")\n\t})\n\n\treturn eng.Serve(*s)\n}\n\nfunc (eng *Engine) printLog() error {\n\tgo func() {\n\t\tfor {\n\n\t\t\tlog.Infof(\"info ....\")\n\t\t\tlog.Debugf(\"debuf ....\")\n\t\t\tlog.Warnf(\"warn ....\")\n\t\t\tlog.Errorf(\"error ....\")\n\t\t\ttime.Sleep(3 * time.Second)\n\t\t}\n\t}()\n\treturn nil\n}\n```\n\n3. Run code\n\n```\n go run ./main.go --config=config.toml\n```\n\n## Bugs and Feedback\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feric-tech01%2Ftaurus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feric-tech01%2Ftaurus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feric-tech01%2Ftaurus/lists"}