masky

package
v0.0.0-...-6225b90 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultClient = http.Client{
	CheckRedirect: func(req *http.Request, via []*http.Request) error {
		return http.ErrUseLastResponse
	},
	Timeout: defaultTimeout,
}

Functions

func ConnectRemote

func ConnectRemote(addr string) (quic.Stream, error)

func Dial

func Dial(addr string) (net.Conn, error)

func Lookup

func Lookup(host, port string) (string, error)

func Relay

func Relay(left, right io.ReadWriteCloser)

func Set

func Set(host, isocode string)

Types

type Conn

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

func NewConn

func NewConn(c io.ReadWriteCloser) *Conn

func (*Conn) Close

func (c *Conn) Close() error

func (*Conn) Read

func (c *Conn) Read(b []byte) (int, error)

func (*Conn) Reader

func (c *Conn) Reader() *bufio.Reader

func (*Conn) Write

func (c *Conn) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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