{"id":18594698,"url":"https://github.com/ernitingarg/googlecloud-go-functions","last_synced_at":"2026-01-06T05:02:54.501Z","repository":{"id":165084386,"uuid":"495067623","full_name":"ernitingarg/googlecloud-go-functions","owner":"ernitingarg","description":null,"archived":false,"fork":false,"pushed_at":"2022-05-22T16:07:59.000Z","size":51,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T16:50:55.558Z","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/ernitingarg.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,"governance":null}},"created_at":"2022-05-22T13:27:33.000Z","updated_at":"2023-10-21T12:28:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"263d6c6a-0cbf-49b4-8460-a8c19553e42e","html_url":"https://github.com/ernitingarg/googlecloud-go-functions","commit_stats":null,"previous_names":["ernitingarg/googlecloud-go-functions"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ernitingarg/googlecloud-go-functions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernitingarg%2Fgooglecloud-go-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernitingarg%2Fgooglecloud-go-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernitingarg%2Fgooglecloud-go-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernitingarg%2Fgooglecloud-go-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ernitingarg","download_url":"https://codeload.github.com/ernitingarg/googlecloud-go-functions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernitingarg%2Fgooglecloud-go-functions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28222111,"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":"2026-01-06T02:00:07.049Z","response_time":56,"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":[],"created_at":"2024-11-07T01:16:42.163Z","updated_at":"2026-01-06T05:02:54.476Z","avatar_url":"https://github.com/ernitingarg.png","language":"Go","readme":"## Usage\n\n#### select target project for deployment\n\n```sh\n$ make set-project GCP_PROJECT=\u003cPROJECT ID\u003e # default is black-stream-292507\n\n# dev\n$ make set-project GCP_PROJECT=black-stream-292507\n$ make set-project GCP_PROJECT=soteria-production\n```\n\n#### local deploy\n\n実質UpdatePriceHistoryのみデプロイすれば問題ない\n\n```sh\n# 先にupdate-btc-price-history-topicのtopicをpubsubで作成する\n# CF deploy\n$ CF_NAME=\"UpdatePriceHistory\" CF_OPTIONS=\"--trigger-resource update-btc-price-history-topic\" make deploy-fn-pubsub\n```\n\n#### local run\n\n- 事前準備\n  - 環境変数`GCP_PROJECT`を定義（GCPのプロジェクトID）\n  - localからfirestoreへ接続できるサービスアカウントの秘密鍵のファイルパス`KEY_FILE_PATH`\n- cmd/main.goを事前に修正すれば、localから起動することが可能\n\n```go\n// main.go\n\n// 新しいCFを追加時は↓のように追加すれば、ローカル起動が可能（http triggerのみ）\nhttp.HandleFunc(\"/new-cloud-function\", functions.NewCloudFunction)\n```\n\n```sh\n# 事前準備\n$ export KEY_FILE_PATH=./.key/service_account.json\n\n# 実行\n$ go run cmd/main.go\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fernitingarg%2Fgooglecloud-go-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fernitingarg%2Fgooglecloud-go-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fernitingarg%2Fgooglecloud-go-functions/lists"}