mocks

package
v3.16.6 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mocks contains mocks for tunnel.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tunnel

type Tunnel struct {
	// MockBootstrapTime allows to mock BootstrapTime.
	MockBootstrapTime func() time.Duration

	// MockSOCKS5ProxyURL allows to mock Socks5ProxyURL.
	MockSOCKS5ProxyURL func() *url.URL

	// MockStop allows to mock Stop.
	MockStop func()
}

Tunnel allows mocking a tunnel.

func (*Tunnel) BootstrapTime

func (t *Tunnel) BootstrapTime() time.Duration

func (*Tunnel) SOCKS5ProxyURL

func (t *Tunnel) SOCKS5ProxyURL() *url.URL

SOCKS5ProxyURL implements Tunnel.SOCKS5ProxyURL.

func (*Tunnel) Stop

func (t *Tunnel) Stop()

Stop implements Tunnel.Stop.

Jump to

Keyboard shortcuts

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