types

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultConfigFileName = "v2ray_config.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	Port uint16 `json:"port"`
}

type Config

type Config struct {
	PID   int32        `json:"pid"`
	API   *APIConfig   `json:"api"`
	Proxy *ProxyConfig `json:"-"`
	VMess *VMessConfig `json:"-"`
}

func (*Config) WriteToFile

func (c *Config) WriteToFile(path string) error

type ProxyConfig

type ProxyConfig struct {
	Port uint16 `json:"-"`
}

type VMessConfig

type VMessConfig struct {
	Address   string `json:"-"`
	ID        string `json:"-"`
	Port      uint16 `json:"-"`
	Transport string `json:"-"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL