config

package
Version: v0.0.0-...-505316a Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 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 {
	SkipLaunch       bool
	Obfs4            bool
	DisableAutostart bool
	StartVPN         bool
	UDP              bool
	Snowflake        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) SetUseObfs4

func (c *Config) SetUseObfs4(val bool) error

func (*Config) SetUseSnowflake

func (c *Config) SetUseSnowflake(val bool) error

func (*Config) SetUseUDP

func (c *Config) SetUseUDP(val bool) error

func (*Config) SetUserStoppedVPN

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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