tunnel

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, url string) (string, <-chan error, error)

New creates a new tunnel pointing at the URL provided. Once created, it returns the external hostname that will resolve to it.

The tunnel will exit when the context provided is canceled.

Upstream connection occurs async through Cloudflare, so the error channel will only be executed if the tunnel has failed after numerous attempts.

Types

This section is empty.

Jump to

Keyboard shortcuts

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