sproxy

package module
v0.0.0-...-7def0e2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MIT Imports: 9 Imported by: 0

README

sproxy

This will be a configurable proxy server that can use WireGuard protocol to connect the servers.

This project uses code from wiredialer to interact with WireGuard protocol.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

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

func NewProxy

func NewProxy(logger *slog.Logger, configuration string, proxyPac string) (*Proxy, error)

func (*Proxy) ServeHTTP

func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ProxyConn

type ProxyConn interface {
	net.Conn
	CloseRead() error
	CloseWrite() error
}

type ProxyRequestIdGetter

type ProxyRequestIdGetter func(ctx context.Context) string

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

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