netmaker/models/dnsEntry.go
2021-07-28 02:23:20 +00:00

8 lines
340 B
Go

//TODO: Either add a returnNetwork and returnKey, or delete this
package models
type DNSEntry struct {
Address string `json:"address" bson:"address" validate:"required,ip"`
Name string `json:"name" bson:"name" validate:"required,name_unique,min=1,max=192"`
Network string `json:"network" bson:"network" validate:"network_exists"`
}