{"id":37785212,"url":"https://github.com/markdingo/miekgrrl","last_synced_at":"2026-01-16T15:11:38.912Z","repository":{"id":79213532,"uuid":"601461941","full_name":"markdingo/miekgrrl","owner":"markdingo","description":"Adaptor to pass miekg/dns.Msg attributes to markdingo/rrl","archived":false,"fork":false,"pushed_at":"2025-04-17T03:44:26.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-17T18:00:04.934Z","etag":null,"topics":["dns","go","golang","golang-package"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markdingo.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}},"created_at":"2023-02-14T05:35:52.000Z","updated_at":"2025-04-17T03:44:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"88832851-c070-4af3-999f-7ecac57caa07","html_url":"https://github.com/markdingo/miekgrrl","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/markdingo/miekgrrl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markdingo%2Fmiekgrrl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markdingo%2Fmiekgrrl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markdingo%2Fmiekgrrl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markdingo%2Fmiekgrrl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markdingo","download_url":"https://codeload.github.com/markdingo/miekgrrl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markdingo%2Fmiekgrrl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: 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":["dns","go","golang","golang-package"],"created_at":"2026-01-16T15:11:38.810Z","updated_at":"2026-01-16T15:11:38.885Z","avatar_url":"https://github.com/markdingo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# miekgrrl - Derive an [rrl](https://github.com/markdingo/rrl) ResponseTuple from a [miekg](https://github.com/miekg/dns) Msg\n\n## Introduction\n\n`miekgrrl` is a tiny specialized adaptor package with a single `Derive()` function which\nconverts a `miekg/dns.Msg` to a `rrl.ResponseTuple` suitable for passing to\nthe [rrl](https://github.com/markdingo/rrl) `Debit()` function.\n\nBy way of background, the [rrl](https://github.com/markdingo/rrl) package is an agnostic\nimplementation of the [Response Rate Limiting](https://kb.isc.org/docs/aa-01148) algorithm\nas originally developed by [ISC](https://www.isc.org). You will need to be familiar with\nboth the [rrl](https://github.com/markdingo/rrl) and the\n[miekg](https://github.com/miekg/dns) package prior to understanding the purpose of this\npackage.\n\nThe sole reason for adaptor packages such as this is to keep `markdingo/rrl` agnostic.\n\n### Project Status\n\n[![Build Status](https://github.com/markdingo/miekgrrl/actions/workflows/go.yml/badge.svg)](https://github.com/markdingo/miekgrrl/actions/workflows/go.yml)\n[![codecov](https://codecov.io/gh/markdingo/miekgrrl/branch/main/graph/badge.svg?token=211OVOI2AV)](https://codecov.io/gh/markdingo/rrl)\n[![CodeQL](https://github.com/markdingo/miekgrrl/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/markdingo/miekgrrl/actions/workflows/codeql-analysis.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/markdingo/miekgrrl)](https://goreportcard.com/report/github.com/markdingo/miekgrrl)\n[![Go Reference](https://pkg.go.dev/badge/github.com/markdingo/miekgrrl.svg)](https://pkg.go.dev/github.com/markdingo/miekgrrl)\n\n## Sample Code\n\n    package main\n\n    import (\n        \"net\"\n\n        \"github.com/markdingo/miekgrrl\"\n        \"github.com/markdingo/rrl\"\n        \"github.com/miekg/dns\"\n    )\n\n    func main() {\n\n      R := rrl.NewRRL(rrl.NewConfig())\n      response := \u0026dns.Msg{}\n      ... populate response ...\n\n      tuple := miekgrrl.Derive(response, \"\")   // Derive the RRL.ResponseTuple from dns.Msg\n\n      action, _, _ := R.Debit(net.Addr, tuple) // Apply RRL rules to ResponseTuple\n      switch action {\n          case rrl.Drop:\n          ...\n          case rrl.Send:\n          ..\n          case rrl.Slip:\n          ..\n\n\nAlternatively, the `Derive()` function is designed such that it can be used directly as an\nargument to the `rrl.Debit()` function. E.g:\n\n      ...\n      R := rrl.NewRRL(rrl.NewConfig())\n      response := \u0026dns.Msg{}\n      ... populate response ...\n\n      action, _, _ := R.Debit(net.Addr, miekgrrl.Derive(response, \"\"))\n      switch action {\n      ...\n\n## Installation\n\n`miekgrrl` requires [go](https://golang.org) version 1.19 or later.\n\nOnce your application imports `\"github.com/markdingo/miekgrrl\"`, then `\"go build\"` or `\"go\nmod tidy\"` should download and compile the `miekgrrl` package automatically.\n\n## Community\n\nIf you have any problems using `miekgrrl` or suggestions on how it can do a better job,\ndon't hesitate to create an [issue](https://github.com/markdingo/miekgrrl/issues) on the\nproject home page.\nThis package can only improve with your feedback.\n\n## Copyright and License\n\n`miekgrrl` is Copyright :copyright: 2023 Mark Delany and is licensed under the BSD\n2-Clause \"Simplified\" License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkdingo%2Fmiekgrrl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkdingo%2Fmiekgrrl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkdingo%2Fmiekgrrl/lists"}