chore: unexpose some plumbing functions

This commit is contained in:
Fernandez Ludovic 2026-02-25 19:42:46 +01:00
commit adcd0dee91
2 changed files with 3 additions and 3 deletions

View file

@ -43,7 +43,7 @@ func (c *Client) fetchSoaByFqdn(ctx context.Context, fqdn string, nameservers []
r *dns.Msg
)
for domain := range DomainsSeq(fqdn) {
for domain := range domainsSeq(fqdn) {
r, err = c.sendQueryCustom(ctx, domain, dns.TypeSOA, nameservers, true)
if err != nil {
continue

View file

@ -11,8 +11,8 @@ import (
* The 2 files should be kept in sync.
*/
// DomainsSeq generates a sequence of domain names derived from a domain (FQDN or not) in descending order.
func DomainsSeq(fqdn string) iter.Seq[string] {
// domainsSeq generates a sequence of domain names derived from a domain (FQDN or not) in descending order.
func domainsSeq(fqdn string) iter.Seq[string] {
return func(yield func(string) bool) {
if fqdn == "" {
return