server

package
v0.0.0-...-8b2c507 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Dir string
}

type Proxy

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

Proxy - Manages a Proxy connection, piping data between local and remote.

func NewProxy

func NewProxy(conn *net.TCPConn) *Proxy

New - Create a new Proxy instance. Takes a remote address and creates a unix file socket. This allows you to manipulate the connection forwarding however you please and closes it when finished.

func (*Proxy) Stop

func (p *Proxy) Stop()

type Server

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

func NewServer

func NewServer(config Config) *Server

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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