Documentation ¶
Index ¶
- Constants
- type Bitmask
- func (b *Bitmask) CanStartVPN() bool
- func (b *Bitmask) CanUpgrade() bool
- func (b *Bitmask) Close()
- func (b *Bitmask) DoLogin(username, password string) (bool, error)
- func (b *Bitmask) GetBestLocation(transport string) string
- func (b *Bitmask) GetCurrentCountry() string
- func (b *Bitmask) GetCurrentGateway() string
- func (b *Bitmask) GetCurrentLocation() string
- func (b *Bitmask) GetLocationLabels(transport string) map[string][]string
- func (b *Bitmask) GetLocationQualityMap(transport string) map[string]float64
- func (b *Bitmask) GetMotd() string
- func (b *Bitmask) GetSnowflakeCh() <-chan *snowflake.StatusEvent
- func (b *Bitmask) GetStatus() (string, error)
- func (b *Bitmask) GetStatusCh() <-chan string
- func (b *Bitmask) GetTransport() string
- func (b *Bitmask) IsManualLocation() bool
- func (b *Bitmask) NeedsCredentials() bool
- func (b *Bitmask) OffersUDP() bool
- func (b *Bitmask) Reconnect() error
- func (b *Bitmask) SetProvider(p string)
- func (b *Bitmask) SetTransport(t string) error
- func (b *Bitmask) StartVPN(provider string) error
- func (b *Bitmask) StopVPN() error
- func (b *Bitmask) UseAutomaticGateway()
- func (b *Bitmask) UseGateway(label string)
- func (b *Bitmask) UseSnowflake(s bool) error
- func (b *Bitmask) UseUDP(udp bool)
- func (b *Bitmask) VPNCheck() (helpers bool, privilege bool, err error)
- func (b *Bitmask) Version() (string, error)
Constants ¶
View Source
const ( On = "on" Off = "off" Starting = "starting" Stopping = "stopping" Failed = "failed" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bitmask ¶
type Bitmask struct {
// contains filtered or unexported fields
}
func (*Bitmask) Close ¶
func (b *Bitmask) Close()
Close the connection to bitmask, and does cleanup of temporal files
func (*Bitmask) GetLocationLabels ¶
func (*Bitmask) GetLocationQualityMap ¶
func (*Bitmask) GetSnowflakeCh ¶
func (b *Bitmask) GetSnowflakeCh() <-chan *snowflake.StatusEvent
func (*Bitmask) GetStatus ¶
GetStatus returns the VPN status
func (*Bitmask) GetStatusCh ¶
GetStatusCh returns a channel that will recieve VPN status changes
func (*Bitmask) GetTransport ¶
GetTransport gets the obfuscation transport to use. Only obfs4 available for now.
func (*Bitmask) SetTransport ¶
SetTransport selects an obfuscation transport to use
func (*Bitmask) UseAutomaticGateway ¶
func (b *Bitmask) UseAutomaticGateway()
UseAutomaticGateway sets the gateway to be selected automatically best gateway will be used
func (*Bitmask) UseGateway ¶
UseGateway selects a gateway, by label, as the default gateway
func (*Bitmask) VPNCheck ¶
VPNCheck returns if the helpers are installed and up to date and if polkit is running
Directories ¶
Path | Synopsis |
---|---|
Package demux implements low-level demultiplexing of the stream of messages sent from OpenVPN on the management channel.
|
Package demux implements low-level demultiplexing of the stream of messages sent from OpenVPN on the management channel. |
Click to show internal directories.
Click to hide internal directories.