-
-
Notifications
You must be signed in to change notification settings - Fork 643
Expand file tree
/
Copy pathkey.go
More file actions
23 lines (21 loc) · 1.1 KB
/
Copy pathkey.go
File metadata and controls
23 lines (21 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package engine
import "time"
type Key struct {
MTU int `yaml:"mtu"`
Mark int `yaml:"fwmark"`
Proxy string `yaml:"proxy"`
RestAPI string `yaml:"restapi"`
Device string `yaml:"device"`
LogLevel string `yaml:"loglevel"`
Interface string `yaml:"interface"`
TCPKeepaliveCount int `yaml:"tcp-keepalive-count"`
TCPKeepaliveIdleTime time.Duration `yaml:"tcp-keepalive-idle-time"`
TCPKeepaliveInterval time.Duration `yaml:"tcp-keepalive-interval"`
TCPModerateReceiveBuffer bool `yaml:"tcp-moderate-receive-buffer"`
TCPSendBufferSize string `yaml:"tcp-send-buffer-size"`
TCPReceiveBufferSize string `yaml:"tcp-receive-buffer-size"`
MulticastGroups string `yaml:"multicast-groups"`
TUNPreUp string `yaml:"tun-pre-up"`
TUNPostUp string `yaml:"tun-post-up"`
UDPTimeout time.Duration `yaml:"udp-timeout"`
}