{"id":26403088,"url":"https://github.com/davidtaing/go-webhook-server","last_synced_at":"2026-04-21T09:33:44.357Z","repository":{"id":220970898,"uuid":"753067435","full_name":"davidtaing/go-webhook-server","owner":"davidtaing","description":"Golang Webhook Server - Receive Webhooks, Handle Events Idempotently, and then Offload Processing to a Job Sink or a Queue","archived":false,"fork":false,"pushed_at":"2024-02-14T07:31:14.000Z","size":60,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-23T23:56:31.199Z","etag":null,"topics":["golang","sqlite"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidtaing.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":"2024-02-05T12:05:16.000Z","updated_at":"2024-02-09T13:20:36.000Z","dependencies_parsed_at":"2024-06-21T01:13:20.039Z","dependency_job_id":null,"html_url":"https://github.com/davidtaing/go-webhook-server","commit_stats":null,"previous_names":["davidtaing/go-webhook-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/davidtaing/go-webhook-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidtaing%2Fgo-webhook-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidtaing%2Fgo-webhook-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidtaing%2Fgo-webhook-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidtaing%2Fgo-webhook-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidtaing","download_url":"https://codeload.github.com/davidtaing/go-webhook-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidtaing%2Fgo-webhook-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32085571,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["golang","sqlite"],"created_at":"2025-03-17T15:29:44.957Z","updated_at":"2026-04-21T09:33:44.330Z","avatar_url":"https://github.com/davidtaing.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Webhook Server\n\n[![wakatime](https://wakatime.com/badge/user/bfa5a500-7b93-4deb-a695-4567ab9e77a8/project/018d7932-9a15-4a60-bb32-cbc13a35a2a9.svg)](https://wakatime.com/badge/user/bfa5a500-7b93-4deb-a695-4567ab9e77a8/project/018d7932-9a15-4a60-bb32-cbc13a35a2a9)\n\nBuild a webhook server that...\n\n- receives webhooks\n- handles duplicated webhooks\n- idempotentally handles webhook retries - TODO\n- offloads webhook processing to background jobs - TODO\n- allow for failure and resumability for background jobs - TODO\n\n## Goals\n\n- Build a portfolio piece.\n- Spend at least 100 hours on this project.\n- Improve at one of my weaker languages (either golang or elixir). Felt that golang had a better market for me as an early career.\n- Be technically challenging.\n\n## Technology\n\n- golang\n- sqlite\n- go-migrate\n- hand rolled SQL (no ORMs for this project)\n- [spf13/cobra](https://github.com/spf13/cobra)\n\n## Acknowlegdements\n\nShouting out some resources that I've used whilst building this.\n\n**GopherCon 2019: Mat Ryer - How I Write HTTP Web Services after Eight Years**\nhttps://www.youtube.com/watch?v=rWBSMsLG8po\n\n**GopherCon 2017: Mitchell Hashimoto - Advanced Testing with Go**\nhttps://www.youtube.com/watch?v=8hQG7QlcLBk\n\n## Project Structure\n\nThe application can be broken down into multiple sub-applications:\n\n- `server`: The main application, the Webhook server. Accessed via the `server` CLI command.\n- `sender-cli`: CLI app to send test webhook events to the server. Accessed via the `send` CLI command.\n- `migrations-cli`: Applies schema changes to the database. It can be accessed via the `migrate-up` and `migrate-down` CLI commands.\n\n### Packages\n\n- `database`: Database utils such as opening a db connection.\n- `logger`: Structured logging via uber-go/zap.\n- `migration`: Applies database migrations. Used by the migrate-up \u0026 migrate-down CLI commands.\n- `models`: Defines the struct types for the data models used in the database.\n- `repository`: Implements CRUD operations for persisting data to the database.\n- `sender`: Send a webhook event to the Webhook server. Used by the `send` CLI command.\n- `server`: Webhook server. This is the main application in this project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidtaing%2Fgo-webhook-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidtaing%2Fgo-webhook-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidtaing%2Fgo-webhook-server/lists"}