proxy

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2017 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

View Source
const (
	APIGATEWAY = "gateway"
)

Variables

This section is empty.

Functions

func NewHTTPProxyHandler

func NewHTTPProxyHandler(domain string) http.Handler

Types

type HTTPProxy

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

generic http proxy handler

func (*HTTPProxy) ServeHTTP

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

implements http.Handler interface

type TCPProxyServer

type TCPProxyServer struct {
	sync.RWMutex // protect clients
	// contains filtered or unexported fields
}

generic tcp proxy server

func NewTCPProxyServer

func NewTCPProxyServer(listen string) *TCPProxyServer

func (*TCPProxyServer) Listen

func (p *TCPProxyServer) Listen() error

func (*TCPProxyServer) MarshalJSON

func (p *TCPProxyServer) MarshalJSON() ([]byte, error)

func (*TCPProxyServer) Serve

func (p *TCPProxyServer) Serve()

func (*TCPProxyServer) Stop

func (p *TCPProxyServer) Stop()

Jump to

Keyboard shortcuts

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