Documentation
¶
Index ¶
- Variables
- func ConfigureLogger(logPath string) (io.Closer, error)
- type Config
- func (c *Config) NeedsDonationReminder() bool
- func (c *Config) SetDonated() error
- func (c *Config) SetLastReminded() error
- func (c *Config) SetUseObfs4(val bool) error
- func (c *Config) SetUseSnowflake(val bool) error
- func (c *Config) SetUseUDP(val bool) error
- func (c *Config) SetUserStoppedVPN(vpnStopped bool) error
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 ¶
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 (*Config) SetDonated ¶
func (*Config) SetLastReminded ¶
func (*Config) SetUseObfs4 ¶
func (*Config) SetUseSnowflake ¶
func (*Config) SetUserStoppedVPN ¶
Click to show internal directories.
Click to hide internal directories.