netmaker/models/dnsEntry.go

9 lines
340 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
type DNSEntry struct {
2021-05-06 05:24:24 +08:00
Address string `json:"address" bson:"address" validate:"required,ip"`
2021-07-28 10:23:20 +08:00
Name string `json:"name" bson:"name" validate:"required,name_unique,min=1,max=192"`
2021-05-06 05:24:24 +08:00
Network string `json:"network" bson:"network" validate:"network_exists"`
2021-04-27 11:39:15 +08:00
}