{"id":20541084,"url":"https://github.com/netways/go-check-network","last_synced_at":"2026-01-08T06:06:08.547Z","repository":{"id":196989137,"uuid":"697212022","full_name":"NETWAYS/go-check-network","owner":"NETWAYS","description":"go-check-network is a collection of modules for the development of monitoring plugins that use network protocols","archived":false,"fork":false,"pushed_at":"2024-06-03T06:24:10.000Z","size":41,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-02-05T06:44:25.284Z","etag":null,"topics":["golang","icinga","monitoring"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NETWAYS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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-09-27T09:24:08.000Z","updated_at":"2024-06-03T06:24:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"d05cf112-e71d-407e-9048-7824654548ee","html_url":"https://github.com/NETWAYS/go-check-network","commit_stats":{"total_commits":16,"total_committers":3,"mean_commits":5.333333333333333,"dds":0.5,"last_synced_commit":"39e140c9fbf174752d717d207ca91cc01db8fbb0"},"previous_names":["netways/go-check-network"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NETWAYS%2Fgo-check-network","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NETWAYS%2Fgo-check-network/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NETWAYS%2Fgo-check-network/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NETWAYS%2Fgo-check-network/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NETWAYS","download_url":"https://codeload.github.com/NETWAYS/go-check-network/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246277073,"owners_count":20751536,"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":["golang","icinga","monitoring"],"created_at":"2024-11-16T01:19:16.870Z","updated_at":"2026-01-08T06:06:03.522Z","avatar_url":"https://github.com/NETWAYS.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-check-network\n\ngo-check-network is a collection of modules for the development of monitoring plugins using network protocols.\n\nSee also:\n\n* https://github.com/NETWAYS/go-check\n\nWe decided to create a dedicated collection for this code to keep the `go-check` module small and focused. Multiple modules within this repository help to reduce dependencies for downstream projects.\n\n## http\n\nThe `checkhttp` module provides packages for the HTTP protocol.\n\n### config\n\nThe go-check-network/http/config package provides helpers to configure HTTP connections (e.g. RoundTrippers, TLSConfig, etc.)\n\nExamples:\n\n```\nimport \"github.com/NETWAYS/go-check-network/http/config\"\n\n// Example for TLSConfig from files\ntlsConfig, err := checkhttp.NewTLSConfig(\u0026checkhttpconfig.TLSConfig{\n    InsecureSkipVerify: false,\n    CAFile:             myCAFile,\n    KeyFile:            myKeyFile,\n    CertFile:           myCertFile,\n})\n\n// Some sane defaults\nvar rt http.RoundTripper = \u0026http.Transport{\n    Proxy: http.ProxyFromEnvironment,\n    DialContext: (\u0026net.Dialer{\n        Timeout:   30 * time.Second,\n        KeepAlive: 30 * time.Second,\n    }).DialContext,\n    TLSHandshakeTimeout: 10 * time.Second,\n    TLSClientConfig:     tlsConfig,\n}\n\n// Example for Token Auth Roundtripper\nrt = checkhttpconfig.NewAuthorizationCredentialsRoundTripper(\"Bearer\", \"secret-bearer-token\", rt)\n\n// Example for Basic Auth Roundtripper\nrt = checkhttpconfig.NewBasicAuthRoundTripper(\"my-user\", \"password123\", rt)\n```\n\n### mock\n\nThe go-check-network/http/config package provides additions to the jarcoal/httpmock module.\n\n# License\n\nCopyright (c) 2023 [NETWAYS GmbH](https://www.netways.de/)\n\nThis library is distributed under the GPL-2.0 or newer license found in the [COPYING](./COPYING)\nfile.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetways%2Fgo-check-network","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetways%2Fgo-check-network","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetways%2Fgo-check-network/lists"}