summaryrefslogtreecommitdiff
path: root/provider/provider.go
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2026-08-20 21:57:55 +0200
committerMel <mel@rnrd.eu>2026-08-20 21:57:55 +0200
commita81cf3b385e45587a6be51f7958f9042975fc0c6 (patch)
tree1588267cfde82d3e831db2c4e9d411dfb55f5489 /provider/provider.go
parent6a4c0a16118d0b545c3c5f6a08ecad432940c1cf (diff)
downloadddnnss-a81cf3b385e45587a6be51f7958f9042975fc0c6.tar.zst
ddnnss-a81cf3b385e45587a6be51f7958f9042975fc0c6.zip
Add bunny.net provider
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'provider/provider.go')
-rw-r--r--provider/provider.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/provider/provider.go b/provider/provider.go
index ce4a715..3f147e5 100644
--- a/provider/provider.go
+++ b/provider/provider.go
@@ -15,8 +15,8 @@ import (
type Kind string
const (
- // only the generic dummy testing provider for now
KindDummy Kind = "dummy"
+ KindBunny Kind = "bunny"
)
type RecordType string
@@ -75,6 +75,8 @@ func New(log *slog.Logger, name string, cfg Config) (Provider, error) {
switch cfg.Kind {
case KindDummy:
return newDummy(log)
+ case KindBunny:
+ return newBunny(log, cfg)
default:
return nil, fmt.Errorf("unknown provider kind %q", cfg.Kind)
}