unixproxy

package
v0.0.1-dev Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: Apache-2.0 Imports: 9 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 {
	SocketAddr string
	Cleanup    func()
}

func RunProxy

func RunProxy(ctx context.Context, opts ProxyOpts) (*Proxy, error)

type ProxyOpts

type ProxyOpts struct {
	Debug, Errors  io.Writer
	SocketPath     string
	Blocking       bool
	Connect        func(context.Context) (net.Conn, error)
	AnnounceSocket func(string)
}

Jump to

Keyboard shortcuts

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