wireguard-dashboard/model/template_data/wireguard.go

32 lines
983 B
Go
Raw Normal View History

package template_data
type Server struct {
Address string `json:"address"`
ListenPort int `json:"listenPort"`
PrivateKey string `json:"privateKey"`
MTU int `json:"mtu"`
PostUp string `json:"postUp"`
PreDown string `json:"preDown"`
PostDown string `json:"postDown"`
Table string `json:"table"`
Clients []Client `json:"clients"`
}
type Client struct {
2024-03-11 11:30:36 +08:00
ID string `json:"id"`
Name string `json:"name"`
PublicKey string `json:"publicKey"`
PresharedKey string `json:"presharedKey"`
AllowedIPS string `json:"allowedIps"`
PersistentKeepalive string `json:"persistentKeepalive"`
Endpoint string `json:"endpoint"`
2024-03-11 11:30:36 +08:00
CreateUser string `json:"createUser"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
type Keys struct {
PrivateKey string `json:"privateKey"`
PublicKey string `json:"publicKey"`
}