proxy

package module
v0.0.0-...-5f7ba3a Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2022 License: MIT Imports: 11 Imported by: 0

README

go-qproxy

qproxy in golang

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoneEndpoint = Endpoint{Schema: "none", Host: "", Port: 0}

NoneEndpoint ...

Functions

func Connect

func Connect(src io.ReadWriteCloser, gateway *Endpoint)

Connect ...

Types

type Encrypter

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

Encrypter for Write with decrypt and Read with encrypt

func NewEncrypter

func NewEncrypter(rw io.ReadWriteCloser, seed *[64]byte) *Encrypter

NewEncrypter used to create new instance of Encrypter

func (*Encrypter) Close

func (enc *Encrypter) Close() error

Close the rw

func (*Encrypter) Read

func (enc *Encrypter) Read(p []byte) (n int, err error)

decrypt

func (*Encrypter) Write

func (enc *Encrypter) Write(p []byte) (n int, err error)

encrypt

type Endpoint

type Endpoint struct {
	Schema string
	Host   string
	Port   int
	// contains filtered or unexported fields
}

Endpoint ...

func ParseEndpoint

func ParseEndpoint(str string) (ep *Endpoint)

ParseEndpoint ...

func (*Endpoint) Address

func (ep *Endpoint) Address() string

Address ...

func (*Endpoint) String

func (ep *Endpoint) String() string

String ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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