{"id":18335923,"url":"https://github.com/sph3ricalpeter/go-service-base","last_synced_at":"2026-05-18T04:36:35.537Z","repository":{"id":226277306,"uuid":"768236231","full_name":"Sph3ricalPeter/go-service-base","owner":"Sph3ricalPeter","description":"A simple (almost minimal) service written in Go with a multistage docker build \u0026 15MB container size","archived":false,"fork":false,"pushed_at":"2024-10-10T23:04:49.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T12:17:36.936Z","etag":null,"topics":["docker","golang","rest-api","service"],"latest_commit_sha":null,"homepage":"","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/Sph3ricalPeter.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}},"created_at":"2024-03-06T18:02:33.000Z","updated_at":"2024-10-12T15:07:56.000Z","dependencies_parsed_at":"2024-03-08T08:31:00.668Z","dependency_job_id":null,"html_url":"https://github.com/Sph3ricalPeter/go-service-base","commit_stats":null,"previous_names":["sph3ricalpeter/go-service-base"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sph3ricalPeter%2Fgo-service-base","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sph3ricalPeter%2Fgo-service-base/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sph3ricalPeter%2Fgo-service-base/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sph3ricalPeter%2Fgo-service-base/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sph3ricalPeter","download_url":"https://codeload.github.com/Sph3ricalPeter/go-service-base/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103899,"owners_count":21048244,"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":["docker","golang","rest-api","service"],"created_at":"2024-11-05T20:05:19.370Z","updated_at":"2025-09-25T11:55:11.395Z","avatar_url":"https://github.com/Sph3ricalPeter.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple GO Service\n\nA simple (almost minimal) service written in GO with a multistage docker build \u0026amp; 15MB container size\n\n## Usage\n\nSimply run the following command to start the service:\n\n```shell\ndocker compose up --build\n```\n\nThere's an endpoint `/alive`:\n\n```shell\ncurl http://localhost:8080/alive\n# prints out '{\"message\":\"Yo I'm alive!\"}'\n```\n\nCalling the endpoint will print:\n\n```text\n2024/10/10 22:55:27 \"GET http://localhost:8080/alive HTTP/1.1\" from 172.18.0.1:60952 - 200 24B in 40.452µs\n```\n\nEndpoint `/private` requires an api key header, default is `123123`\n\n```shell\ncurl -X GET \"localhost:8080/private\" -w \"%{http_code}\"\n# prints out '401'\n\ncurl -X GET \"localhost:8080/private\" -H \"X-API-KEY: 123123\"\n# prints out '{\"message\":\"I'm private!\"}'\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsph3ricalpeter%2Fgo-service-base","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsph3ricalpeter%2Fgo-service-base","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsph3ricalpeter%2Fgo-service-base/lists"}