netmaker/models/mqtt.go

18 lines
600 B
Go
Raw Normal View History

package models
2022-01-16 07:16:44 +08:00
import "golang.zx2c4.com/wireguard/wgctrl/wgtypes"
2022-01-26 11:14:31 +08:00
// PeerUpdate - struct
type PeerUpdate struct {
2022-01-26 23:40:39 +08:00
Network string `json:"network" bson:"network" yaml:"network"`
ServerAddrs []ServerAddr `json:"serveraddrs" bson:"serveraddrs" yaml:"serveraddrs"`
Peers []wgtypes.PeerConfig `json:"peers" bson:"peers" yaml:"peers"`
2022-03-15 02:59:41 +08:00
DNS string `json:"dns" bson:"dns" yaml:"dns"`
}
2022-01-26 11:14:31 +08:00
// KeyUpdate - key update struct
type KeyUpdate struct {
2022-01-26 11:14:31 +08:00
Network string `json:"network" bson:"network"`
Interface string `json:"interface" bson:"interface"`
}