tunnel

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tunnel

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

func NewTunnel

func NewTunnel(ctx context.Context, conn quic.Connection) (*Tunnel, error)

func (*Tunnel) ActiveRoutes

func (t *Tunnel) ActiveRoutes() ([]string, error)

func (*Tunnel) AddRoutes

func (t *Tunnel) AddRoutes(routes ...string) error

func (*Tunnel) Close

func (t *Tunnel) Close() error

func (*Tunnel) GetLoopbackRoute

func (t *Tunnel) GetLoopbackRoute() (string, error)

func (*Tunnel) Name

func (t *Tunnel) Name() string

func (*Tunnel) Pause

func (t *Tunnel) Pause() error

func (*Tunnel) RemoveRoutes

func (t *Tunnel) RemoveRoutes(routes ...string) error

func (*Tunnel) Resume

func (t *Tunnel) Resume() error

func (*Tunnel) Status

func (t *Tunnel) Status() string

Jump to

Keyboard shortcuts

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