proxy

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cfg Config, stdin io.Reader, stdout io.Writer) error

Run bridges stdin/stdout to the relay via HTTP streaming. It handles reconnection transparently — the caller never sees a disconnection.

Types

type Config

type Config struct {
	URL              string
	InputURL         string // separate /input endpoint for dedicated input connection
	BufSize          int
	TLSConfig        *tls.Config
	ReconnectTimeout time.Duration
	HTTPClient       *http.Client
	SOCKSAddr        string // e.g. "127.0.0.1:9050" for Tor
	Verbose          bool   // enable detailed debug output
	ForceProto       string // "h2" or "h3" to force a specific protocol; empty = auto-race
}

Config holds proxy configuration.

Jump to

Keyboard shortcuts

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