{"id":20740365,"url":"https://github.com/hokkung/srv","last_synced_at":"2026-05-20T05:37:35.957Z","repository":{"id":189243769,"uuid":"680322880","full_name":"hokkung/srv","owner":"hokkung","description":"Internal library for communication with HTTP protocol for Golang application","archived":false,"fork":false,"pushed_at":"2024-01-04T22:09:48.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T01:43:59.462Z","etag":null,"topics":["gin-gonic","golang","unit-testing"],"latest_commit_sha":null,"homepage":"","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/hokkung.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-18T22:49:48.000Z","updated_at":"2024-04-30T11:29:33.000Z","dependencies_parsed_at":"2024-11-17T06:30:25.879Z","dependency_job_id":"5788781c-25e3-4e9d-bd58-eefb599d9a75","html_url":"https://github.com/hokkung/srv","commit_stats":null,"previous_names":["hokkung/srv"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hokkung%2Fsrv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hokkung%2Fsrv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hokkung%2Fsrv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hokkung%2Fsrv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hokkung","download_url":"https://codeload.github.com/hokkung/srv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243030785,"owners_count":20224665,"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":["gin-gonic","golang","unit-testing"],"created_at":"2024-11-17T06:28:19.611Z","updated_at":"2026-05-20T05:37:30.925Z","avatar_url":"https://github.com/hokkung.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Srv\nA library for communicate with HTTP protocol.\n\n## Installation\n```\ngo get github.com/hokkung/srv\n```\n\n## Getting Started\n1. Prepair a customizer to register a route\n```\ntype ServerCustomizer struct {\n\n}\n\nfunc (c *ServerCustomizer) Register(s *server.Server) {\n    s.Engine.GET(\"/ping\", func(c *gin.Context) {\n\t\tc.JSON(http.StatusOK, gin.H{\n\t\t\t\"message\": \"pong\",\n\t\t})\n\t})\n}\n```\n2. Create a server and start\n```\ncustomizer := ServerCustomizer{}\nserver := server.NewServer(customizer)\ns.Start()\n```\n\n## Environment Configuration ##\n| Key | Description | Example | \n| --- | ----------- | ------- | \n| APP_SERVER_ADDR | Port to start HTTP server | :8080 (default)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhokkung%2Fsrv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhokkung%2Fsrv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhokkung%2Fsrv/lists"}