netmaker/models/dnsEntry.go

9 lines
343 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"`
Name string `json:"name" bson:"name" validate:"required,alphanum,name_unique,max=120"`
Network string `json:"network" bson:"network" validate:"network_exists"`
2021-04-27 11:39:15 +08:00
}