config

package
v0.0.0-...-59e0dc6 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Provider             = ""
	ApplicationName      = ""
	BinaryName           = ""
	Auth                 = ""
	APIURL               = ""
	GeolocationAPI       = ""
	ApiVersion           = -1
	CaCert               = []byte("")
	STUNServers          = []string{}
	CountryCodeLookupURL = ""
)
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 CloseLogger

func CloseLogger()

func ConfigureLogger

func ConfigureLogger()

Types

type Config

type Config struct {
	SkipLaunch       bool
	Obfs4            bool
	DisableAutostart bool
	StartVPN         bool
	UDP              bool
	Snowflake        bool
	KCP              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) SetUseKCP

func (c *Config) SetUseKCP(val bool) 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