http

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTP

func NewHTTP(link string) (*dialer.Dialer, error)

func NewSocks5FromClashObj

func NewSocks5FromClashObj(o *yaml.Node) (*dialer.Dialer, error)

Types

type HTTP

type HTTP struct {
	Name     string `json:"name"`
	Server   string `json:"server"`
	Port     int    `json:"port"`
	Username string `json:"username"`
	Password string `json:"password"`
	SNI      string `json:"sni"`
	Protocol string `json:"protocol"`
}

func ParseClash

func ParseClash(o *yaml.Node) (data *HTTP, err error)

func ParseHTTPURL

func ParseHTTPURL(link string) (data *HTTP, err error)

func (*HTTP) Dialer

func (s *HTTP) Dialer() (*dialer.Dialer, error)

func (*HTTP) ExportToURL

func (s *HTTP) ExportToURL() string

func (*HTTP) URL

func (s *HTTP) URL() url.URL

Jump to

Keyboard shortcuts

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