config

package
v2.12.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LastConnectionExist

func LastConnectionExist() bool

LastConnectionExist - returns 'true' if available info about last successful connection

func SaveConfig

func SaveConfig(conf Configuration) error

SaveConfig saves configuration to local storage

func SaveLastConnectionInfo

func SaveLastConnectionInfo(ci LastConnectionInfo)

SaveLastConnectionInfo save last connection parameters in local storage

Types

type Configuration

type Configuration struct {
	CustomDNS           string
	Antitracker         bool
	AntitrackerHardcore bool
}

Configuration - local configuration

func GetConfig

func GetConfig() (Configuration, error)

GetConfig returns local configuration

type LastConnectionInfo

type LastConnectionInfo struct {
	Gateway         string
	Port            string
	Obfsproxy       bool
	FirewallOff     bool
	DNS             string
	Antitracker     bool
	AntitrackerHard bool

	MultiopExitSvr string
}

LastConnectionInfo information about last connection parameters

func RestoreLastConnectionInfo

func RestoreLastConnectionInfo() *LastConnectionInfo

RestoreLastConnectionInfo restore last connection info from local storage

Jump to

Keyboard shortcuts

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