clash

package
v0.0.0-...-92ab757 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(path string) (*cc.Config, error)

func URLToMetadata

func URLToMetadata(u *url.URL) (*constant.Metadata, error)

Types

type ClashTransport

type ClashTransport struct {
	// contains filtered or unexported fields
}

func NewClashTransport

func NewClashTransport(p constant.Proxy) *ClashTransport

func (*ClashTransport) DialContext

func (c *ClashTransport) DialContext(ctx context.Context, network, address string) (net.Conn, error)

func (*ClashTransport) RoundTrip

func (c *ClashTransport) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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