config

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SOCKS5    = "socks5"
	HTTP      = "http"
	WEBSOCKET = "ws"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GeoDomain

type GeoDomain struct {
	DirectIfNotInRules bool   `yaml:"DirectIfNotInRules"`
	GfwPath            string `yaml:"GfwPath"`
	DirectPath         string `yaml:"DirectPath"`
}

func (*GeoDomain) String added in v0.0.3

func (geoDomain *GeoDomain) String() string

type Local

type Local struct {
	ProxyType     string     `yaml:"ProxyType"`
	ProxyMode     string     `yaml:"ProxyMode"`
	BindHost      string     `yaml:"BindHost"`
	BindPort      uint16     `yaml:"BindPort"`
	DNSServer     string     `yaml:"DNSServer"`
	RemoteHost    string     `yaml:"RemoteHost"`
	RemotePort    uint16     `yaml:"RemotePort"`
	RemoteSSL     bool       `yaml:"RemoteSSL"`
	GeoDomain     *GeoDomain `yaml:"GeoDomain"`
	Salt          string     `yaml:"Salt"`
	Username      string     `yaml:"Username"`
	Password      string     `yaml:"Password"`
	AllowInsecure bool       `yaml:"AllowInsecure"`

	HttpPath      string `yaml:"HttpPath"`
	HttpDomain    string `yaml:"HttpDomain"`
	HttpUserAgent string `yaml:"HttpUserAgent"`

	GrpcServiceName string `yaml:"GrpcServiceName"`
}

func (*Local) String added in v0.0.3

func (local *Local) String() string

func (*Local) UnmarshalYAML added in v0.0.6

func (s *Local) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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