{"id":20299551,"url":"https://github.com/daeuniverse/functions","last_synced_at":"2026-05-09T01:40:49.618Z","repository":{"id":172405324,"uuid":"649232221","full_name":"daeuniverse/functions","owner":"daeuniverse","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-20T14:46:06.000Z","size":49,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T06:23:04.673Z","etag":null,"topics":["daeuniverse","serverless"],"latest_commit_sha":null,"homepage":"https://function.v2raya.org/api/v2/index","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/daeuniverse.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-04T07:56:07.000Z","updated_at":"2023-06-13T12:27:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"72527a1b-ea59-427d-b43b-723d2ad97769","html_url":"https://github.com/daeuniverse/functions","commit_stats":null,"previous_names":["daeuniverse/functions"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/daeuniverse/functions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daeuniverse%2Ffunctions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daeuniverse%2Ffunctions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daeuniverse%2Ffunctions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daeuniverse%2Ffunctions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daeuniverse","download_url":"https://codeload.github.com/daeuniverse/functions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daeuniverse%2Ffunctions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32804585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["daeuniverse","serverless"],"created_at":"2024-11-14T16:15:23.430Z","updated_at":"2026-05-09T01:40:49.602Z","avatar_url":"https://github.com/daeuniverse.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Functions\n\n## Intro\n\nA serverless functions for internal interaction with [@daeuniverse](https://github.com/daeuniverse)\n\n## Prerequisites\n\nExport `GITHUB_TOKEN` as environment variable\n\n```bash\nexport GITHUB_TOKEN=\u003ctoken\u003e\n# ONLY needed for workflow routes\n# export AUTH_TOKEN=\u003ctoken\u003e\n```\n\n## How to use\n\n```bash\ngo run main.go\n```\n\n## API Comsumption\n\n- healthcheck - `/GET localhost:5888/api/v2/health`\n- fetch geodata(geosite.dat) - `/GET localhost:5888/api/v2/geodata?file=geosite.dat`\n- fetch geodata(geoip.dat) - `/GET localhost:5888/api/v2/geodata?file=geoip.dat`\n- trigger daed-pick-build - `/POST localhost:5888/api/v2/workflow?name=daed-pick-build\u0026daed=main\u0026wing=origin/main\u0026dae=origin/main`\n\n## References\n\n- [go-chi-v5](https://pkg.go.dev/github.com/go-chi/chi/v5)\n- [go-resty](https://pkg.go.dev/github.com/go-resty/resty/v2)\n- [go-github-sdk](https://pkg.go.dev/github.com/google/go-github/v52/github)\n- [How to pipe http.Response to http.ResponseWriter](https://stackoverflow.com/questions/28891531/piping-http-response-to-http-responsewriter)\n- [Golang communicating the name of the file served to the browser/client](https://stackoverflow.com/questions/44510661/golang-communicating-the-name-of-the-file-served-to-the-browser-client)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaeuniverse%2Ffunctions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaeuniverse%2Ffunctions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaeuniverse%2Ffunctions/lists"}