2022-01-05 23:05:51 +08:00
|
|
|
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
|
2022-01-05 23:05:51 +08:00
|
|
|
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-02 19:28:53 +08:00
|
|
|
DNS []byte `json:"dns" bson:'dns" yaml:"dns"`
|
2022-01-05 23:05:51 +08:00
|
|
|
}
|
|
|
|
|
2022-01-26 11:14:31 +08:00
|
|
|
// KeyUpdate - key update struct
|
2022-01-05 23:05:51 +08:00
|
|
|
type KeyUpdate struct {
|
2022-01-26 11:14:31 +08:00
|
|
|
Network string `json:"network" bson:"network"`
|
|
|
|
Interface string `json:"interface" bson:"interface"`
|
2022-01-05 23:05:51 +08:00
|
|
|
}
|