Versions in this module Expand all Collapse all v0 v0.7.0 Mar 2, 2024 Changes in this version + const DefaultServerPort + const DefaultTimeout + 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 struct + Rules []Rule + Timeout time.Duration + type Rule struct + Tunnel Tunnel + Upstreams []string + type TcpForwardConfig struct + Instance string + MuxEnabled bool + Port int + Project string + ServiceAccount string + ServiceUrl string + Upstream string + Zone string + type Tunnel struct + Instance string + MuxEnabled bool + Port int + Project string + ServiceAccount string + ServiceUrl string + Zone string