wg-gen-web/model/server.go

23 lines
810 B
Go
Raw Normal View History

2020-01-30 06:45:49 +00:00
package model
import "time"
2020-01-30 07:17:29 +00:00
// Server structure
2020-01-30 06:45:49 +00:00
type Server struct {
2020-01-30 07:12:26 +00:00
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"`
2020-02-05 02:57:43 +00:00
PreUp string `json:"preUp"`
PostUp string `json:"postUp"`
PreDown string `json:"preDown"`
PostDown string `json:"postDown"`
2020-01-30 06:45:49 +00:00
}