{"id":41594634,"url":"https://github.com/go-x-pkg/servers","last_synced_at":"2026-01-24T09:37:15.616Z","repository":{"id":40692148,"uuid":"225607813","full_name":"go-x-pkg/servers","owner":"go-x-pkg","description":"HTTP, HTTPs, UNIX, gRPC servers with configs and context","archived":false,"fork":false,"pushed_at":"2025-12-15T18:37:41.000Z","size":51,"stargazers_count":0,"open_issues_count":5,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-19T01:59:18.167Z","etag":null,"topics":["boilerplate","configuration","grpc","http"],"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/go-x-pkg.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-12-03T11:52:29.000Z","updated_at":"2021-11-08T12:00:18.000Z","dependencies_parsed_at":"2024-02-25T11:37:13.523Z","dependency_job_id":"bfaf6b5a-42ed-4daf-afc6-c751f9b3d195","html_url":"https://github.com/go-x-pkg/servers","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/go-x-pkg/servers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-x-pkg%2Fservers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-x-pkg%2Fservers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-x-pkg%2Fservers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-x-pkg%2Fservers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-x-pkg","download_url":"https://codeload.github.com/go-x-pkg/servers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-x-pkg%2Fservers/sbom","scorecard":{"id":432657,"data":{"date":"2025-08-11","repo":{"name":"github.com/go-x-pkg/servers","commit":"85e62abbdd61d6dfeebcb65604d900315f02b936"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.1,"checks":[{"name":"Code-Review","score":2,"reason":"Found 3/11 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 23 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2023-1571 / GHSA-vvpx-j8f3-3w6h","Warn: Project is vulnerable to: GO-2023-1988 / GHSA-2wrh-6pvc-2jm9","Warn: Project is vulnerable to: GO-2023-2102 / GHSA-4374-p667-p6c8","Warn: Project is vulnerable to: GO-2023-2153 / GHSA-m425-mq94-257g / GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw","Warn: Project is vulnerable to: GO-2024-2611 / GHSA-8r3f-844c-mc37"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T03:43:33.411Z","repository_id":40692148,"created_at":"2025-08-19T03:43:33.412Z","updated_at":"2025-08-19T03:43:33.412Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28723539,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T08:27:05.734Z","status":"ssl_error","status_checked_at":"2026-01-24T08:27:01.197Z","response_time":89,"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":["boilerplate","configuration","grpc","http"],"created_at":"2026-01-24T09:37:15.550Z","updated_at":"2026-01-24T09:37:15.605Z","avatar_url":"https://github.com/go-x-pkg.png","language":"Go","readme":"# servers\n\n[![GoDev][godev-image]][godev-url]\n[![Build Status][build-image]][build-url]\n[![Coverage Status][coverage-image]][coverage-url]\n[![Go Report Card][goreport-image]][goreport-url]\n[![Deepsource.io Card][deepsource-io-image]][deepsource-io-url]\n\nHTTP, HTTPs, gRPC, UNIX servers with configs and context\n\n## Quick-start\n\n```go\npackage main\n\nimport (\n  \"bytes\"\n  \"context\"\n  \"fmt\"\n  \"http\"\n  \"log\"\n  \"sync\"\n\n  \"google.golang.org/grpc\"\n  \"github.com/go-x-pkg/servers\"\n)\n\nfunc main() {\n  var s servers.Servers\n\n  config := `- kind: [unix, http]\n  addr: /run/acme/acme.sock\n- kind: inet\n  host: 0.0.0.0\n  port: 8000\n- kind: [inet, grpc]\n  host: 0.0.0.0\n  port: 8443\n  tls:\n    enable: true\n    cert-file: /etc/acme/tls.cert\n    key-file: /etc/acme/tls.key\n  grpc:\n    # e.g. grpcurl\n    reflection: true`\n\n  if err := yaml.Unmarshal([]byte(config), \u0026ss); err != nil {\n    log.Fatalf(\"error unmarshal: %s\", err)\n  }\n\n  listeners, err := ss.Listen()\n  if len(errs) != 0 {\n    listeners.Close()\n\n    log.Fatalf(\"error listen: %#v\", errs)\n  }\n\n  http.HandleFunc(\"/\", func (w http.ResponseWriter, r *http.Request) {\n    log.Printf(\"[\u003c] %#v %#v\", w, r)\n  })\n\n  ctx := context.Background()\n  ctx, cancel := context.WithCancel(ctx)\n  defer cancel()\n\n  wg := sync.WaitGroup()\n\n  wg.Add(1)\n  go func() {\n    defer wg.Done()\n\n    err := listeners.ServeHTTP(\n      http.DefaultServerMux,\n\n      servers.Context(ctx),\n    )\n  }()\n\n  wg.Add(1)\n  go func() {\n    defer wg.Done()\n\n    err := listeners.ServeGRPC(\n      func (*grpc.Server) {\n        # register gRPC servers here\n      },\n\n      servers.Context(ctx),\n    )\n  }()\n\n  wg.Wait()\n}\n```\n\n## Config example\n\n```yaml\n- kind: [unix, http]\n  addr: /run/acme/acme.sock\n\n- kind: inet\n  host: 0.0.0.0\n  port: 8000\n\n- kind: [inet, grpc]\n  host: 0.0.0.0\n  port: 8443\n  tls:\n    enable: true\n    cert-file: /etc/acme/tls.cert\n    key-file: /etc/acme/tls.key\n  grpc:\n    # e.g. grpcurl\n    reflection: true\n```\n\n[godev-image]: https://img.shields.io/badge/go.dev-reference-5272B4?logo=go\u0026logoColor=white\n[godev-url]: https://pkg.go.dev/github.com/go-x-pkg/servers\n\n[build-image]: https://app.travis-ci.com/go-x-pkg/servers.svg?branch=master\n[build-url]: https://app.travis-ci.com/github/go-x-pkg/servers\n\n[coverage-image]: https://coveralls.io/repos/github/go-x-pkg/servers/badge.svg?branch=master\n[coverage-url]: https://coveralls.io/github/go-x-pkg/servers?branch=master\n\n[goreport-image]: https://goreportcard.com/badge/github.com/go-x-pkg/servers\n[goreport-url]: https://goreportcard.com/report/github.com/go-x-pkg/servers\n\n[deepsource-io-image]: https://static.deepsource.io/deepsource-badge-light-mini.svg\n[deepsource-io-url]: https://deepsource.io/gh/go-x-pkg/servers/?ref=repository-badge\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-x-pkg%2Fservers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-x-pkg%2Fservers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-x-pkg%2Fservers/lists"}