{"id":19083110,"url":"https://github.com/cr-mao/crgo","last_synced_at":"2025-10-06T11:22:21.769Z","repository":{"id":38416282,"uuid":"493139550","full_name":"cr-mao/crgo","owner":"cr-mao","description":"http and grpc framework ","archived":false,"fork":false,"pushed_at":"2023-02-05T14:50:28.000Z","size":4305,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-27T18:46:37.368Z","etag":null,"topics":["grpc-server","http-server"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cr-mao.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-05-17T07:20:21.000Z","updated_at":"2023-09-18T07:18:54.000Z","dependencies_parsed_at":"2023-02-08T18:15:35.603Z","dependency_job_id":null,"html_url":"https://github.com/cr-mao/crgo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cr-mao/crgo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cr-mao%2Fcrgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cr-mao%2Fcrgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cr-mao%2Fcrgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cr-mao%2Fcrgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cr-mao","download_url":"https://codeload.github.com/cr-mao/crgo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cr-mao%2Fcrgo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278599590,"owners_count":26013511,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["grpc-server","http-server"],"created_at":"2024-11-09T02:46:05.164Z","updated_at":"2025-10-06T11:22:21.749Z","avatar_url":"https://github.com/cr-mao.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# my golang framework\n\n- 项目框架的搭建\n\n#### Usage\n\n```shell \n$ export GO111MODULE=on\n$ go mod download\n\n#$ go get github.com/golang/protobuf/protoc-gen-go@v1.3.5\n#$ brew install protobuf\n\n## Or Download https://github.com/protocolbuffers/protobuf/releases/download/v3.9.2/protoc-3.9.2-osx-x86_64.zip\n#$ unzip protoc-3.9.2-osx-x86_64.zip\n\n# www.crblog.cc/posts/go/grpc-protobuf-action  参见这篇文章 安装新的proto相关工具\n\n$ go run main.go --help \n$ make serve\n```\n\n\n#### consul 本地启动\n```shell\n# https://developer.hashicorp.com/consul/downloads \n# sudo mkdir -p /etc/consul.d\nsudo consul agent -server -bootstrap-expect 1 -data-dir /tmp/consul -node=n1 -bind=127.0.0.1 -ui -config-dir /etc/consul.d -rejoin -join 127.0.0.1 -client 0.0.0.0\n```\n\n#### prometheus 本地启动\n```shell\ndocker pull prom/prometheus:v2.20.1\ndocker run -d --name prometheus -p 9090:9090 -v /Users/mac/code/crgo/build/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus:v2.20.1\n```\n\n\n#### jaeger 本地启动\n\nhttps://www.jaegertracing.io/docs/1.41/getting-started/\n\n```shell\ndocker run -d --name jaeger \\\n  -e COLLECTOR_ZIPKIN_HOST_PORT=:9411 \\\n  -e COLLECTOR_OTLP_ENABLED=true \\\n  -p 6831:6831/udp \\\n  -p 6832:6832/udp \\\n  -p 5778:5778 \\\n  -p 16686:16686 \\\n  -p 4317:4317 \\\n  -p 4318:4318 \\\n  -p 14250:14250 \\\n  -p 14268:14268 \\\n  -p 14269:14269 \\\n  -p 9411:9411 \\\n  jaegertracing/all-in-one\n```\n\n\n\n#### 构建镜像\n\n```shell\n## 注意项目里面的 一些服务地址 如mysql,redis 要修改成 容器ip ...不然跑不起来的。 \ndocker build -t crgo:v1  --build-arg VERSION=\"$(git rev-parse --short HEAD)\",BUILDTIME=\"$(date +%FT%T)\" -f  ./build/crgo/Dockerfile ./ \n```\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcr-mao%2Fcrgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcr-mao%2Fcrgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcr-mao%2Fcrgo/lists"}