v2ray

package
v0.2.18 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewV2Ray

func NewV2Ray(link string, opt *dialer.GlobalOption) (*dialer.Dialer, error)

func NewVMessFromClashObj

func NewVMessFromClashObj(o *yaml.Node, opt *dialer.GlobalOption) (*dialer.Dialer, error)

Types

type V2Ray

type V2Ray struct {
	Ps            string `json:"ps"`
	Add           string `json:"add"`
	Port          string `json:"port"`
	ID            string `json:"id"`
	Aid           string `json:"aid"`
	Net           string `json:"net"`
	Type          string `json:"type"`
	Host          string `json:"host"`
	SNI           string `json:"sni"`
	Path          string `json:"path"`
	TLS           string `json:"tls"`
	Flow          string `json:"flow,omitempty"`
	Alpn          string `json:"alpn,omitempty"`
	AllowInsecure bool   `json:"allowInsecure"`
	V             string `json:"v"`
	Protocol      string `json:"protocol"`
}

func ParseClashVMess

func ParseClashVMess(o *yaml.Node) (data *V2Ray, err error)

func ParseVlessURL

func ParseVlessURL(vless string) (data *V2Ray, err error)

func ParseVmessURL

func ParseVmessURL(vmess string) (data *V2Ray, err error)

func (*V2Ray) Dialer

func (s *V2Ray) Dialer() (data *dialer.Dialer, err error)

func (*V2Ray) ExportToURL

func (s *V2Ray) ExportToURL() string

Jump to

Keyboard shortcuts

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