{"id":15198722,"url":"https://github.com/qba73/icdh","last_synced_at":"2026-03-06T19:11:07.732Z","repository":{"id":63686880,"uuid":"569794615","full_name":"qba73/icdh","owner":"qba73","description":"Go client library for NGINX Ingress Controller Service Insight API","archived":false,"fork":false,"pushed_at":"2023-01-21T22:30:22.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-30T22:50:45.707Z","etag":null,"topics":["go","go-client","go-library","golang","nginx","nginx-ingress-controller"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qba73.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}},"created_at":"2022-11-23T16:19:39.000Z","updated_at":"2023-03-27T17:58:27.000Z","dependencies_parsed_at":"2023-01-30T05:50:18.030Z","dependency_job_id":null,"html_url":"https://github.com/qba73/icdh","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/qba73/icdh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qba73%2Ficdh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qba73%2Ficdh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qba73%2Ficdh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qba73%2Ficdh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qba73","download_url":"https://codeload.github.com/qba73/icdh/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qba73%2Ficdh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30192564,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"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":["go","go-client","go-library","golang","nginx","nginx-ingress-controller"],"created_at":"2024-09-28T01:40:25.885Z","updated_at":"2026-03-06T19:11:07.711Z","avatar_url":"https://github.com/qba73.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go](https://github.com/qba73/icdh/actions/workflows/go.yml/badge.svg?branch=main)](https://github.com/qba73/icdh/actions/workflows/go.yml)\n![GitHub](https://img.shields.io/github/license/qba73/icdh)\n![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/qba73/icdh)\n[![Go Report Card](https://goreportcard.com/badge/github.com/qba73/icdh)](https://goreportcard.com/report/github.com/qba73/icdh)\n[![Go Reference](https://pkg.go.dev/badge/github.com/qba73/icdh@v0.1.0.svg)](https://pkg.go.dev/github.com/qba73/icdh@v0.1.0)\n\n# icdh\n\n```icdh``` is a Go client library for [NGINX Ingress Controller Deep Service Insight](https://docs.nginx.com/nginx-ingress-controller/logging-and-monitoring/service-insight/) API.\n\n## Using the Go library\n\nImport the library using:\n\n```go\nimport \"github.com/qba73/icdh\"\n```\n\n## Creating a client\n\nCreate a new ```client``` object by calling ```icdh.NewClient(baseURL)```\n\n```go\nclient, err := icdh.NewClient(\"http://localhost:9114\")\nif err != nil {\n    // handle err\n}\n```\n\nOr create a client with a specific http Client:\n\n```go\nmyHTTPClient := \u0026http.Client{}\n\nclient, err := icdh.NewClient(\n    \"http://localhost:9114\",\n    icdh.WithHTTPClient(myHTTPClient),\n)\nif err != nil {\n    // handle error\n}\n```\n\n## Retrieve statistics for host `my.service.com`\n\n```go\nstats, err := client.GetStats(ctx, \"my.service.com\")\nif err != nil {\n    // handle err\n}\n```\n\n## Retrieve statistics for name (transport) `service`\n\n```go\nstats, err := client.GetTSStats(ctx, \"service\")\nif err != nil {\n    // handle err\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqba73%2Ficdh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqba73%2Ficdh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqba73%2Ficdh/lists"}