groknet

package module
v0.0.0-...-c5372cc Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: MIT Imports: 15 Imported by: 0

README

groknet

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Subdomain string // host tunnel on a custom subdomain
	Auth      string // enforce basic auth on tunnel endpoint, 'user:password'
	Hostname  string // host tunnel on custom hostname (requires DNS CNAME)
	Identity  string // path to private key for SSH auth (default: ~/.ssh/id_rsa)
	Region    string // ngrok region to use (default: us)
}

type Listener

type Listener struct {
	net.Listener
	*ssh.Session
	*ssh.Client

	Account     string
	Region      string
	URL         *url.URL
	InsecureURL *url.URL
}

func Listen

func Listen(config Config) (*Listener, error)

func (*Listener) Close

func (l *Listener) Close() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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