tunnel

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartClient

func StartClient(ctx context.Context, addr string, c TcpForwardConfig) error

func StartHttpProxy

func StartHttpProxy(ctx context.Context, addr string, c HttpProxyConfig) error

func StartServer

func StartServer(addr string, mux bool) error

Types

type HttpProxyConfig

type HttpProxyConfig struct {
	ServiceUrl string
	Mux        bool
	Instance   string
	Port       int
	Project    string
	Zone       string
}

type Server

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

type TcpForwardConfig

type TcpForwardConfig struct {
	ServiceUrl string
	Mux        bool
	Instance   string
	Port       int
	Project    string
	Zone       string
	Upstream   string
}

Jump to

Keyboard shortcuts

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