mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-10 17:48:25 +08:00
23 lines
992 B
Go
23 lines
992 B
Go
package models
|
|
|
|
import (
|
|
"github.com/gravitl/netclient/nmproxy/manager"
|
|
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
|
)
|
|
|
|
// PeerUpdate - struct
|
|
type PeerUpdate struct {
|
|
Network string `json:"network" bson:"network" yaml:"network"`
|
|
ServerVersion string `json:"serverversion" bson:"serverversion" yaml:"serverversion"`
|
|
ServerAddrs []ServerAddr `json:"serveraddrs" bson:"serveraddrs" yaml:"serveraddrs"`
|
|
Peers []wgtypes.PeerConfig `json:"peers" bson:"peers" yaml:"peers"`
|
|
DNS string `json:"dns" bson:"dns" yaml:"dns"`
|
|
PeerIDs PeerMap `json:"peerids" bson:"peerids" yaml:"peerids"`
|
|
ProxyUpdate manager.ProxyManagerPayload `json:"proxy_update" bson:"proxy_update" yaml:"proxy_update"`
|
|
}
|
|
|
|
// KeyUpdate - key update struct
|
|
type KeyUpdate struct {
|
|
Network string `json:"network" bson:"network"`
|
|
Interface string `json:"interface" bson:"interface"`
|
|
}
|