Documentation ¶
Index ¶
Constants ¶
View Source
const ( Type = 2 ConfigFileName = "v2ray.toml" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
VMess *VMessConfig `json:"vmess" mapstructure:"vmess"`
}
func (*Config) SaveToPath ¶
func (*Config) WithDefaultValues ¶
type VMessConfig ¶
type VMessConfig struct { ListenPort uint16 `json:"listen_port" mapstructure:"listen_port"` Transport string `json:"transport" mapstructure:"transport"` }
func NewVMessConfig ¶
func NewVMessConfig() *VMessConfig
func (*VMessConfig) Validate ¶
func (c *VMessConfig) Validate() error
func (*VMessConfig) WithDefaultValues ¶
func (c *VMessConfig) WithDefaultValues() *VMessConfig
Click to show internal directories.
Click to hide internal directories.