{"id":24986417,"url":"https://github.com/byte-power/rockgo","last_synced_at":"2025-04-11T22:50:39.508Z","repository":{"id":57504830,"uuid":"229390602","full_name":"byte-power/rockgo","owner":"byte-power","description":"Framework for build web application, focus on improve develop speed and software quality.","archived":false,"fork":false,"pushed_at":"2021-01-20T05:54:37.000Z","size":89,"stargazers_count":16,"open_issues_count":0,"forks_count":2,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-25T18:45:31.598Z","etag":null,"topics":["golang","iris-go","webframework"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/byte-power.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-21T07:01:42.000Z","updated_at":"2023-04-17T00:51:32.000Z","dependencies_parsed_at":"2022-08-29T23:40:56.531Z","dependency_job_id":null,"html_url":"https://github.com/byte-power/rockgo","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byte-power%2Frockgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byte-power%2Frockgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byte-power%2Frockgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byte-power%2Frockgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/byte-power","download_url":"https://codeload.github.com/byte-power/rockgo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248492987,"owners_count":21113161,"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":["golang","iris-go","webframework"],"created_at":"2025-02-04T11:06:00.930Z","updated_at":"2025-04-11T22:50:39.489Z","avatar_url":"https://github.com/byte-power.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RockGo Application Framework\n\nRockGo is fast, simple application framework for Go.\n\nRockGo is agent to iris, fluentd, statsd, zap and sentry too. It make easy to build perfect application or service.\n\n## Features\n* Application\n\t* [x] Service, ServiceGroup\n\t* [x] Config\n\t* [x] Basic middleware\n\t\t* Access log\n\t\t* recover \u0026 metric\n\t* [x] Logger integration\n\t* [x] Metric (Stats)\n\t* [x] Sentry\n* Log\n\t* [x] Logger, Output, Format\n\t* [x] zap\n\t* [x] fluent\n* Crypto\n\t* [x] AES\n\t* [x] Digest (MD5, SHA1/256/512)\n\t* [x] RSA\n* Example\n\t* [x] Route - Application, Config\n\t* [ ] Metric \u0026 Sentry\n\n## Example\nPlease visit [example](/tree/master/_example).\n\n## Install\n* go get\n```\n$ go get github.com/byte-power/rockgo\n```\n* Add import\n```go\nimport \"github.com/byte-power/rockgo/rock\"\n```\n* Add config file named \"rockgo.yaml\" for internal modules on your settings directory\n```yaml\napp_name: myapp\nlog:\n  LoggerName:\n    console:\n    fluent:\n      level: info\n      host: \"myfluenthost.com\"\n      port: 24224\n      async: true\nmetric:\n  host: \"127.0.0.1:8125\"\nsentry:\n  dsn: \"http://user@127.0.0.1/1\"\n  repanic: true\n```\n\n* Append routes, middlewares and then Run server\n```go\nfunc main() {\n  // load each config file include rockgo.yaml in the directory to create Application\n  app, err := rock.NewApplication(\"settings\")\n  if err != nil {\n    panic(err)\n  }\n  // register route handler with Service\n  app.Serve(\"root\", \"/\").Get(func(ctx iris.Context) {\n    ctx.StatusCode(http.StatusOK)\n    ctx.Text(\"Hello RockGo\")\n  })\n  groupArt := app.ServeGroup(\"article\", \"/arts\")\n  groupArt.Use(/* append middleware working on the group only, e.g. authentication */)\n  groupArt.Serve(\"root\", \"/\").Get(func(ctx iris.Context) {\n    // do something to response /arts/\n  })\n  err = app.Run(\":8080\")\n  if err != nil {\n    panic(err)\n  }\n}\n```\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyte-power%2Frockgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyte-power%2Frockgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyte-power%2Frockgo/lists"}