Help us shape the future of Go! Take the 2026 Go Developer Survey

tunnel

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package tunnel is a self-hosted harness's front door: a cloudflared child that carries one public HTTPS URL to the harness's loopback port, so the harness opens no inbound port and needs no domain.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Own

func Own(ctx context.Context, dir, url, token, origin string, up func(url string)) error

Own runs the user's own tunnel, by the token Cloudflare gave for it, until ctx ends, and calls up with url each time cloudflared starts. The user routes url to the tunnel and the tunnel to origin in Cloudflare.

func Quick

func Quick(ctx context.Context, dir, origin string, up func(url string)) error

Quick runs a quick tunnel to origin until ctx ends, and calls up with its URL each time cloudflared starts. dir keeps cloudflared and the tunnel's credentials, so a restart comes back at the same URL while Cloudflare keeps the tunnel, about 10 minutes after its last connection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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