add json tags

This commit is contained in:
Abhishek Kondur 2023-01-31 16:14:00 +04:00
parent 62e7cc366e
commit be741c1b44

View file

@ -32,20 +32,20 @@ type HostPeerUpdate struct {
}
type IngressInfo struct {
ExtPeers map[string]ExtClientInfo
ExtPeers map[string]ExtClientInfo `json:"ext_peers" yaml:"ext_peers"`
}
type PeerExtInfo struct {
PeerAddr net.IPNet
PeerKey wgtypes.Key
Allow bool
PeerAddr net.IPNet `json:"peer_addr" yaml:"peer_addr"`
PeerKey wgtypes.Key `json:"peer_key" yaml:"peer_key"`
Allow bool `json:"allow" yaml:"allow"`
}
type ExtClientInfo struct {
Masquerade bool
ExtPeerAddr net.IPNet
ExtPeerKey wgtypes.Key
Peers map[string]PeerExtInfo
Masquerade bool `json:"masquerade" yaml:"masquerade"`
ExtPeerAddr net.IPNet `json:"ext_peer_addr" yaml:"ext_peer_addr"`
ExtPeerKey wgtypes.Key `json:"ext_peer_key" yaml:"ext_peer_key"`
Peers map[string]PeerExtInfo `json:"peers" yaml:"peers"`
}
// NetworkInfo - struct for network info