mirror of
https://github.com/vx3r/wg-gen-web.git
synced 2024-11-04 17:31:17 +00:00
23 lines
810 B
Go
23 lines
810 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
// Server structure
|
|
type Server struct {
|
|
Name string `json:"name"`
|
|
Created time.Time `json:"created"`
|
|
Updated time.Time `json:"updated"`
|
|
Address string `json:"address"`
|
|
ListenPort int `json:"listenPort"`
|
|
PrivateKey string `json:"privateKey"`
|
|
PublicKey string `json:"publicKey"`
|
|
PresharedKey string `json:"presharedKey"`
|
|
Endpoint string `json:"endpoint"`
|
|
PersistentKeepalive int `json:"persistentKeepalive"`
|
|
Dns string `json:"dns"`
|
|
PreUp string `json:"preUp"`
|
|
PostUp string `json:"postUp"`
|
|
PreDown string `json:"preDown"`
|
|
PostDown string `json:"postDown"`
|
|
}
|