Documentation ¶ Index ¶ type Config type Proxy func NewProxy(conn *net.TCPConn) *Proxy func (p *Proxy) Stop() type Server func NewServer(config Config) *Server func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) func (s *Server) Stop() 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() Source Files ¶ View all Source files proxy.go server.go Click to show internal directories. Click to hide internal directories.