Documentation ¶
Index ¶
- Variables
- func CoreHTTPClient(inst *core.Instance, timeout time.Duration) (*http.Client, error)
- func CoreHTTPRequest(inst *core.Instance, timeout time.Duration, method, dest string) (int, []byte, error)
- func CoreVersion() string
- func Vmess2Outbound(v *Link, usemux bool) (*core.OutboundHandlerConfig, error)
- type Link
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrWrongProtocol = errors.New("wrong protocol")
)
Functions ¶
func CoreHTTPClient ¶
func CoreHTTPRequest ¶
func CoreVersion ¶
func CoreVersion() string
func Vmess2Outbound ¶
func Vmess2Outbound(v *Link, usemux bool) (*core.OutboundHandlerConfig, error)
Types ¶
type Link ¶
type Link struct { Ps string `json:"ps"` Add string `json:"add"` Port interface{} `json:"port"` ID string `json:"id"` Aid interface{} `json:"aid"` Net string `json:"net"` Type string `json:"type"` Host string `json:"host"` Path string `json:"path"` TLS string `json:"tls"` }
func ParseSingle ¶
ParseSingle parses single vmess URL into Link structure
func (*Link) Description ¶
Click to show internal directories.
Click to hide internal directories.