Documentation ¶
Index ¶
- Constants
- func ServeProxy(ctx context.Context, ln net.Listener, c ProxyConfig) error
- func StartProxy(ctx context.Context, addr string, c ProxyConfig) error
- func StartServer(addr string, timeout time.Duration, allowedUpstreams []string) error
- func StartTcpForward(ctx context.Context, addr string, c TcpForwardConfig) error
- type ProxyConfig
- type Rule
- type TcpForwardConfig
- type Tunnel
Constants ¶
View Source
const ( DefaultTimeout = 5 * time.Second DefaultServerPort = 7654 )
Variables ¶
This section is empty.
Functions ¶
func ServeProxy ¶
func StartProxy ¶
func StartProxy(ctx context.Context, addr string, c ProxyConfig) error
func StartServer ¶
func StartTcpForward ¶
func StartTcpForward(ctx context.Context, addr string, c TcpForwardConfig) error
Types ¶
type ProxyConfig ¶
type TcpForwardConfig ¶
Click to show internal directories.
Click to hide internal directories.