tunnel

package
v0.0.0-...-7f12acd Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func NewManager

func NewManager(certManager *cert.CertManager) *Manager

func (*Manager) Close

func (m *Manager) Close(ctx context.Context) error

func (*Manager) ListTunnels

func (m *Manager) ListTunnels() []map[string]interface{}

func (*Manager) StartTunnel

func (m *Manager) StartTunnel(ctx context.Context, port int, domain string, https bool, httpsPort int) error

func (*Manager) Stop

func (m *Manager) Stop(ctx context.Context) error

func (*Manager) StopAll

func (m *Manager) StopAll(ctx context.Context) error

func (*Manager) StopTunnel

func (m *Manager) StopTunnel(ctx context.Context, domain string) error

type Tunnel

type Tunnel struct {
	Port      int
	HTTPSPort int
	Domain    string
	TargetIP  string
	HTTPS     bool

	Cert *tls.Certificate
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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