netmaker/models/mqtt.go

17 lines
486 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 11:14:31 +08:00
Network string `json:"network" bson:"network"`
ServerAddrs []string `json:"serversaddrs" bson:"serversaddrs"`
Peers []wgtypes.PeerConfig `json:"peers" bson:"peers"`
}
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"`
}