tunnel

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAvailable

func IsAvailable() bool

IsAvailable checks if SSH is available on the system

Types

type Tunnel

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

Tunnel implements interfaces.Tunnel

func New

func New(port int) (*Tunnel, error)

New creates and starts a new SSH tunnel asynchronously

func (*Tunnel) Close

func (t *Tunnel) Close() error

Close closes the tunnel and cleans up resources

func (*Tunnel) Ready added in v0.1.4

func (t *Tunnel) Ready() <-chan struct{}

Ready returns a channel that's closed when the tunnel is ready to use

func (*Tunnel) URL

func (t *Tunnel) URL() string

URL returns the tunnel's public URL

Jump to

Keyboard shortcuts

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