[feature] Initial commit

This commit is contained in:
2026-03-25 22:16:00 -04:00
parent 2814505fec
commit 7752d82001
10 changed files with 636 additions and 4 deletions

24
example.go Normal file
View File

@@ -0,0 +1,24 @@
package main
import (
"context"
"github.com/libdns/libdns"
log "github.com/sirupsen/logrus"
)
type ExampleSetter struct {
}
func (e *ExampleSetter) SetRecords(ctx context.Context, zone string, recs []libdns.Record) ([]libdns.Record, error) {
for _, record := range recs {
rr := record.RR()
log.WithFields(log.Fields{
"zone": zone,
"name": rr.Name,
}).Info("Set/Update record")
}
return recs, nil
}