wireguard-ui/model/setting.go
andycandy-de bd4a3312f4 Added Table to global settings
Added Table to UI global settings view
Added Table to wg conf template
Added Table to settings model
Added Table with default value `auto` to config util
Updated README
2023-01-22 21:47:46 +01:00

17 lines
523 B
Go

package model
import (
"time"
)
// GlobalSetting model
type GlobalSetting struct {
EndpointAddress string `json:"endpoint_address"`
DNSServers []string `json:"dns_servers"`
MTU int `json:"mtu,string"`
PersistentKeepalive int `json:"persistent_keepalive,string"`
ForwardMark string `json:"forward_mark"`
Table string `json:"table"`
ConfigFilePath string `json:"config_file_path"`
UpdatedAt time.Time `json:"updated_at"`
}