mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-11 01:54:34 +08:00
8 lines
343 B
Go
8 lines
343 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,alphanum,name_unique,max=120"`
|
|
Network string `json:"network" bson:"network" validate:"network_exists"`
|
|
}
|