protocol

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	None        = ""
	Vmess       = "vmess"
	Shadowsocks = "ss"
)

Variables

View Source
var ErrWrongProtocol = errors.New("wrong protocol")

Functions

This section is empty.

Types

type ShadowsocksConfig

type ShadowsocksConfig struct {
	Method   string
	Password string
	Hostname string
	Port     int
}

func ParseShadowsocksUri

func ParseShadowsocksUri(uri string) (*ShadowsocksConfig, error)

type Type

type Type string

func GetProtocol

func GetProtocol(uri string) (Type, error)

Jump to

Keyboard shortcuts

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