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) 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) InstallHelpers() error
- func (b *Bitmask) IsManualLocation() bool
- func (b *Bitmask) ListLocationFullness(transport string) map[string]float64
- func (b *Bitmask) ListLocationLabels(transport string) map[string][]string
- func (b *Bitmask) NeedsCredentials() bool
- func (b *Bitmask) OffersUDP() bool
- func (b *Bitmask) Reconnect() error
- func (b *Bitmask) ReloadFirewall() 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) error
- 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
}
Bitmask holds the bitmask client data
func (*Bitmask) CanStartVPN ¶
func (*Bitmask) CanUpgrade ¶
func (*Bitmask) Close ¶
func (b *Bitmask) Close()
Close the connection to bitmask, and does cleanup of temporal files
func (*Bitmask) GetBestLocation ¶
func (*Bitmask) GetCurrentCountry ¶
func (*Bitmask) GetCurrentGateway ¶
func (*Bitmask) GetCurrentLocation ¶
func (*Bitmask) GetSnowflakeCh ¶
func (b *Bitmask) GetSnowflakeCh() <-chan *snowflake.StatusEvent
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) InstallHelpers ¶
func (*Bitmask) IsManualLocation ¶
func (*Bitmask) ListLocationFullness ¶
func (*Bitmask) ListLocationLabels ¶
func (*Bitmask) NeedsCredentials ¶
func (*Bitmask) ReloadFirewall ¶
ReloadFirewall restarts the firewall
func (*Bitmask) SetProvider ¶
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) UseSnowflake ¶
Source Files
¶
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.