{"id":19598694,"url":"https://github.com/go-eagle/eagle-layout","last_synced_at":"2025-10-30T23:32:58.089Z","repository":{"id":41054499,"uuid":"324480720","full_name":"go-eagle/eagle-layout","owner":"go-eagle","description":"Eagle project layout ","archived":false,"fork":false,"pushed_at":"2024-10-24T12:04:08.000Z","size":342,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-25T12:00:59.849Z","etag":null,"topics":[],"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/go-eagle.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-26T04:26:08.000Z","updated_at":"2024-09-19T14:28:30.000Z","dependencies_parsed_at":"2024-08-01T13:59:43.528Z","dependency_job_id":"e1a64e6b-acc2-4d25-8b81-06abf58351d2","html_url":"https://github.com/go-eagle/eagle-layout","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-eagle%2Feagle-layout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-eagle%2Feagle-layout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-eagle%2Feagle-layout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-eagle%2Feagle-layout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-eagle","download_url":"https://codeload.github.com/go-eagle/eagle-layout/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251171332,"owners_count":21547089,"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-11T09:07:33.971Z","updated_at":"2025-10-30T23:32:53.043Z","avatar_url":"https://github.com/go-eagle.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-project-layout\n\neagle project template\n\neagle: https://github.com/go-eagle/eagle\n\n## 目录结构\n\n```bash\n.\n├── api                          # proto协议定义目录\n├── cmd                          # 项目主要的入口文件目录\n│   ├── consumer                 # 消费者服务入口\n│   ├── gen                      # 代码生成工具入口 \n│   └── server                   # HTTP/GRPC 服务主入口\n├── config                       # 配置文件目录\n│   ├── dev                      # 开发环境配置\n│   ├── test                     # 测试环境配置\n│   ├── prod                     # 生产环境配置\n│   └── docker                   # Docker 环境配置\n├── deploy                       # 部署相关配置\n│   ├── docker                   # Docker 部署配置\n│   └── k8s                      # Kubernetes 部署配置\n├── internal                     # 内部应用程序代码\n│   ├── dal                      # 数据访问层\n│   │   ├── cache               # 缓存操作\n│   │   ├── db                  # 数据库操作\n│   │   └── rpc                 # RPC 调用\n│   ├── ecode                   # 错误码定义\n│   ├── event                   # 事件处理\n│   │   └── subscribe           # 消息订阅处理\n│   ├── handler                 # HTTP 请求处理器\n│   ├── repository             # 数据仓库层\n│   ├── routers                # 路由定义\n│   └── service                # 业务逻辑层\n├── scripts                    # 存放shell脚本\n└── third_party                # 三方proto文件\n```\n\n## 开发流程\n\n1、修改 proto  \n2、重新生成 pb及grpc: `make grpc`  \n3、运行服务 `make run`  \n4、确认可运行后，补充业务逻辑\n\n## References\n\n- https://go.dev/doc/modules/layout\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-eagle%2Feagle-layout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-eagle%2Feagle-layout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-eagle%2Feagle-layout/lists"}