parser

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseOption

func ParseOption(mapping map[string]interface{}) (interface{}, error)

func ParseProxy

func ParseProxy(mapping map[string]interface{}) (constant.Proxy, error)

Types

type BaseInfo

type BaseInfo struct {
	Id   string `json:"id,omitempty"`
	Type string `json:"type"`
}

type ShadowSocksOption

type ShadowSocksOption struct {
	BaseInfo
	Name       string                 `json:"name"`
	Server     string                 `json:"server"`
	Port       int                    `json:"port"`
	Password   string                 `json:"password"`
	Cipher     string                 `json:"method"`
	UDP        bool                   `json:"udp,omitempty"`
	Plugin     string                 `json:"plugin,omitempty"`
	PluginOpts map[string]interface{} `json:"pluginOpts,omitempty"`
}

type Socks5Option

type Socks5Option struct {
	BaseInfo
	Name           string `json:"name"`
	Server         string `json:"server"`
	Port           int    `json:"port"`
	UserName       string `json:"username,omitempty"`
	Password       string `json:"password,omitempty"`
	TLS            bool   `json:"tls,omitempty"`
	UDP            bool   `json:"udp,omitempty"`
	SkipCertVerify bool   `json:"skipCertVerify,omitempty"`
}

Jump to

Keyboard shortcuts

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