Documentation
¶
Index ¶
Constants ¶
View Source
const ServiceName = "v2ray"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateOptions ¶
type Options ¶
type Options struct {
ListenAddr string `yaml:"on"`
ListenHost string `yaml:"-"`
ListenPort string `yaml:"-"`
Proxy chrome.Proxy `yaml:"over"`
ForwardServer struct {
Address string `json:"address"`
Port int `json:"port"`
} `yaml:"-"`
Type string
Protocol string `yaml:"-"`
Transport string `yaml:"-"`
Security string `yaml:"-"`
ProtocolOptions `yaml:",inline"`
TransportOptions `yaml:",inline"`
SecurityOptions `yaml:",inline"`
Conn chrome.ConnOptions
Relay chrome.RelayOptions
// contains filtered or unexported fields
}
type ProtocolOptions ¶
type SecurityOptions ¶
type TransportOptions ¶
type TransportOptions struct {
GRPC struct {
ServiceName string `json:"serviceName"`
}
HTTPUPGRADE struct {
Path string `json:"path,omitempty"`
Host string `json:"host,omitempty"`
}
TCP struct{}
WS struct {
Path string `json:"path,omitempty"`
Header []struct {
Key string `json:"key"`
Value string `json:"value"`
} `json:"header,omitempty"`
}
}
Click to show internal directories.
Click to hide internal directories.