netmaker/models/dnsEntry.go

11 lines
433 B
Go
Raw Normal View History

2021-04-27 11:39:15 +08:00
//TODO: Either add a returnNetwork and returnKey, or delete this
package models
2022-04-20 04:18:03 +08:00
// DNSEntry - a DNS entry represented as struct
2021-04-27 11:39:15 +08:00
type DNSEntry struct {
2022-04-20 04:18:03 +08:00
Address string `json:"address" bson:"address" validate:"ip"`
Address6 string `json:"address6" bson:"address6"`
Name string `json:"name" bson:"name" validate:"required,name_unique,min=1,max=192"`
Network string `json:"network" bson:"network" validate:"network_exists"`
2021-04-27 11:39:15 +08:00
}