proxy

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialHostAndPort

func DialHostAndPort(hostname string, port uint16) (*mtop.MTopClientConn, error)

func DialURL

func DialURL(u *url.URL) (*mtop.MTopClientConn, error)

func Init

func Init()

func RunHTTPProxy

func RunHTTPProxy()

func RunSOCKS5Proxy

func RunSOCKS5Proxy()

Types

type ServerConfig

type ServerConfig struct {
	Host     string `json:"host" yaml:"host"`
	Username string `json:"username" yaml:"username"`
	Password string `json:"password" yaml:"password"`
	Type     string `json:"type" yaml:"type"`
	CA       string `json:"ca" yaml:"ca"`
	Proto    string `json:"proto" yaml:"proto"`
	Enabled  bool   `json:"enabled" yaml:"enabled"`
}

Jump to

Keyboard shortcuts

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