config

package
v0.0.0-...-f9638ab Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 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  = ""
	ApiVersion      = -1
)
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 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