mulltest

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestModeEnabled

func TestModeEnabled() bool

Types

type OpState

type OpState int
const (
	OpNull OpState = iota
	OpIsMullvad
	OpRelays
)

type Tester

type Tester struct {
	Addr string

	StateIsMullvad *atomic.Bool
	StateOpMode    *atomic.Value
	// contains filtered or unexported fields
}

func Init

func Init() *Tester

func (*Tester) OpState

func (t *Tester) OpState() OpState

func (*Tester) SetIsMullvad

func (t *Tester) SetIsMullvad()

func (*Tester) SetIsNotMullvad

func (t *Tester) SetIsNotMullvad()

func (*Tester) SetOpIsMullvad

func (t *Tester) SetOpIsMullvad()

func (*Tester) SetOpRelays

func (t *Tester) SetOpRelays()

func (*Tester) StartServer

func (t *Tester) StartServer()

Jump to

Keyboard shortcuts

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