config

package
v0.0.0-...-7da33f4 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

View Source
var ProviderConfig = &ProviderCfg{}

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

type ProviderCfg

type ProviderCfg struct {
	Provider             string
	ApplicationName      string
	BinaryName           string
	Auth                 string
	APIURL               string
	GeolocationAPI       string
	ApiVersion           int
	CaCert               []byte
	STUNServers          []string
	CountryCodeLookupURL string
}

Source Files

  • config.go
  • gui.go
  • logger.go
  • unix.go

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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