{"id":17912741,"url":"https://github.com/dergoegge/go-functions-sdk","last_synced_at":"2025-10-18T00:36:53.782Z","repository":{"id":97732997,"uuid":"180612898","full_name":"dergoegge/go-functions-sdk","owner":"dergoegge","description":"Golang cloud functions sdk","archived":false,"fork":false,"pushed_at":"2019-05-01T11:29:54.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T16:16:04.690Z","etag":null,"topics":["cloud-functions","golang","google-cloud"],"latest_commit_sha":null,"homepage":null,"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/dergoegge.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}},"created_at":"2019-04-10T15:40:28.000Z","updated_at":"2019-05-01T11:29:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"f958010d-cbd6-4563-86f6-fb1b83ecb7c3","html_url":"https://github.com/dergoegge/go-functions-sdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dergoegge%2Fgo-functions-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dergoegge%2Fgo-functions-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dergoegge%2Fgo-functions-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dergoegge%2Fgo-functions-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dergoegge","download_url":"https://codeload.github.com/dergoegge/go-functions-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246952278,"owners_count":20859812,"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":["cloud-functions","golang","google-cloud"],"created_at":"2024-10-28T19:46:48.180Z","updated_at":"2025-10-18T00:36:53.683Z","avatar_url":"https://github.com/dergoegge.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Importer beware this is a **WORK IN PROGRESS**\n\n# Unofficial golang cloud functions sdk\n\nThis projects aims to simplify the deployment process of golang cloud functions.\n\nCode the functions and deploy with `gocf deploy`.\n\n## Install the functions package\n```\ngo get github.com/dergoegge/go-functions-sdk\n```\n\n## Function examples\n\n```golang\npackage funcpackage\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"net/http\"\n\n\t\"github.com/dergoegge/go-functions-sdk/pkg/functions\"\n)\n\nvar HTTPFuncName = functions.New().\n\tRunWith(functions.RuntimeOptions{\n\t\tTimeout: 70, // Timeout in seconds\n\t\tMemory:  \"128MB\",\n\t}).\n\tRegion(\"us-central1\").\n\tRetryOnFailure(true).\n\tOnRequest(func(w http.ResponseWriter, r *http.Request) {\n\t\tfmt.Fprintf(w, \"Yeet\")\n\t})\n\nvar FirestoreFuncName = functions.New().\n\tRunWith(functions.RuntimeOptions{\n\t\tTimeout: 70,\n\t\tMemory:  \"1GB\",\n\t}).\n\tRegion(\"europe-west2\").\n\tFirestore().\n\tDocument(\"some-collection/{docID}\").\n\tOnWrite(func(ctx context.Context, event functions.FirestoreEvent) error {\n\t\tfmt.Println(event.Value.Fields)\n\t\treturn nil\n\t})\n\n```\n\nMore examples for different trigger types are located in the `examples` directory.\n\n## Supported trigger types\n\n* Http\n* Firestore\n* Storage\n* PubSub\n* Firebase authentication\n\nMore coming soon.\n\n## Install the deployment tool\n\n```sh\ngcloud auth login\ngcloud config set project \u003cproject-id\u003e\n\ngo install github.com/dergoegge/go-functions-sdk/cmd/gocf\n```\n\n## Comands\n\nDeploy cloud functions:  \n`gocf deploy [--only \"comma seperated list of functions to deploy\"]`\n\nList deployed cloud functions:  \n`gocf list`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdergoegge%2Fgo-functions-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdergoegge%2Fgo-functions-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdergoegge%2Fgo-functions-sdk/lists"}