proxy

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

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

func NewProxy

func NewProxy(hosts []string, port int) (*Proxy, error)

func (*Proxy) Close

func (p *Proxy) Close()

func (*Proxy) SendFile

func (p *Proxy) SendFile(ctx context.Context, file *os.File, rowSeparator string, chunkedWriter io.WriteCloser) error

func (*Proxy) StartProxy

func (p *Proxy) StartProxy() error

func (*Proxy) Write

func (p *Proxy) Write(ctx context.Context, files []*os.File, rowSeparator string) error

Jump to

Keyboard shortcuts

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