ray2sing

package
v0.0.0-...-1b50911 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: CC0-1.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeepassSingbox

func BeepassSingbox(beepassUrl string) (*T.Outbound, error)

func CheckUrlAndJson

func CheckUrlAndJson(url string, expectedJSON string, t *testing.T)

func DirectSingbox

func DirectSingbox(url string) (*T.Outbound, error)

func GenerateConfigLite

func GenerateConfigLite(input string) (string, error)

func Hysteria2Singbox

func Hysteria2Singbox(hysteria2Url string) (*T.Outbound, error)

func HysteriaSingbox

func HysteriaSingbox(hysteriaURL string) (*T.Outbound, error)

func ParseTurnURL

func ParseTurnURL(turnURL string) (*T.TurnRelayOptions, error)

func Ray2Singbox

func Ray2Singbox(configs string) (out string, err error)

func SSHSingbox

func SSHSingbox(sshURL string) (*T.Outbound, error)

func ShadowsocksSingbox

func ShadowsocksSingbox(shadowsocksUrl string) (*T.Outbound, error)

func TrojanSingbox

func TrojanSingbox(trojanURL string) (*T.Outbound, error)

func TuicSingbox

func TuicSingbox(tuicUrl string) (*T.Outbound, error)

func VlessSingbox

func VlessSingbox(vlessURL string) (*T.Outbound, error)

func VmessSingbox

func VmessSingbox(vmessURL string) (*T.Outbound, error)

func WarpSingbox

func WarpSingbox(url string) (*T.Outbound, error)

func WiregaurdSingbox

func WiregaurdSingbox(url string) (*T.Outbound, error)

Types

type ParserFunc

type ParserFunc func(string) (*option.Outbound, error)

type UrlSchema

type UrlSchema struct {
	Scheme   string
	Username string
	Password string
	Hostname string
	Port     uint16
	Name     string
	Params   map[string]string
}

HysteriaURLData holds the parsed data from a Hysteria URL.

func ParseUrl

func ParseUrl(inputURL string, defaultPort uint16) (*UrlSchema, error)

parseHysteria2 parses a given URL and returns a HysteriaURLData struct.

func (UrlSchema) GetRelayOptions

func (u UrlSchema) GetRelayOptions() (*T.TurnRelayOptions, error)

func (UrlSchema) GetServerOption

func (u UrlSchema) GetServerOption() T.ServerOptions

Jump to

Keyboard shortcuts

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