aboutsummaryrefslogtreecommitdiff
path: root/messages.go
diff options
context:
space:
mode:
Diffstat (limited to 'messages.go')
-rw-r--r--messages.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/messages.go b/messages.go
index 89e01b8..52812e8 100644
--- a/messages.go
+++ b/messages.go
@@ -152,6 +152,10 @@ var identTypes = map[IdentType]string{
IdentDNS: "dns",
}
+func NewIdent(domain string) Identifier {
+ return Identifier{Type: IdentDNS, Value: domain}
+}
+
func (i IdentType) String() string {
return identTypes[i]
}