config

package
Version: v0.0.0-...-ae09609 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Provider        = ""
	ApplicationName = ""
	BinaryName      = ""
	Auth            = ""
	APIURL          = ""
	GeolocationAPI  = ""
)
View Source
var CaCert = []byte("")
View Source
var (
	LogPath = path.Join(Path, "systray.log")
)
View Source
var Path = path.Join(os.Getenv("HOME"), ".config", "leap")

Path for the config files

Functions

func ConfigureLogger

func ConfigureLogger(logPath string) (io.Closer, error)

ConfigureLogger to write logs into a file as well as the stderr

Types

type Config

type Config struct {
	Obfs4             bool
	DisableAustostart bool
	StartVPN          bool
	SkipLaunch        bool
	// contains filtered or unexported fields
}

Config holds the configuration of the systray

func ParseConfig

func ParseConfig() *Config

ParseConfig reads the configuration from the configuration file

func (*Config) NeedsDonationReminder

func (c *Config) NeedsDonationReminder() bool

func (*Config) SetDonated

func (c *Config) SetDonated() error

func (*Config) SetLastReminded

func (c *Config) SetLastReminded() error

func (*Config) SetUserStoppedVPN

func (c *Config) SetUserStoppedVPN(vpnStopped bool) error

Directories

Path Synopsis
version

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL