Documentation ¶
Index ¶
- Constants
- func GetAntitrackerIP(isHardcore, isMultihop bool, servers *apitypes.ServersInfoResponse) (string, error)
- func Initialize(proto *protocol.Client)
- func IsAntiTrackerIP(dns string, servers *apitypes.ServersInfoResponse) (antitracker, antitrackerHardcore bool)
- func PrintTip(w *tabwriter.Writer, tip TipType)
- func PrintTips(tips []TipType)
- type CmdAccount
- type CmdAntitracker
- type CmdConnect
- type CmdDisconnect
- type CmdDns
- type CmdFirewall
- type CmdLogin
- type CmdLogout
- type CmdLogs
- type CmdServers
- type CmdState
- type CmdWireGuard
- type NotImplemented
- type TipType
Constants ¶
View Source
const ( ProtoName_OpenVPN = "OpenVPN" ProtoName_WireGuard = "WireGuard" )
Variables ¶
This section is empty.
Functions ¶
func GetAntitrackerIP ¶
func GetAntitrackerIP(isHardcore, isMultihop bool, servers *apitypes.ServersInfoResponse) (string, error)
GetAntitrackerIP - returns IP of antitracker DNS
func Initialize ¶
Initialize initializes commands. Must be called before using any command.
func IsAntiTrackerIP ¶
func IsAntiTrackerIP(dns string, servers *apitypes.ServersInfoResponse) (antitracker, antitrackerHardcore bool)
IsAntiTrackerIP returns info 'is this IP equals to antitracker IP'
Types ¶
type CmdAccount ¶
func (*CmdAccount) Init ¶
func (c *CmdAccount) Init()
func (*CmdAccount) Run ¶
func (c *CmdAccount) Run() error
type CmdAntitracker ¶
func (*CmdAntitracker) Init ¶
func (c *CmdAntitracker) Init()
func (*CmdAntitracker) Run ¶
func (c *CmdAntitracker) Run() error
type CmdConnect ¶
func (*CmdConnect) Init ¶
func (c *CmdConnect) Init()
func (*CmdConnect) Run ¶
func (c *CmdConnect) Run() (retError error)
type CmdDisconnect ¶
func (*CmdDisconnect) Init ¶
func (c *CmdDisconnect) Init()
func (*CmdDisconnect) Run ¶
func (c *CmdDisconnect) Run() error
type CmdFirewall ¶
func (*CmdFirewall) Init ¶
func (c *CmdFirewall) Init()
func (*CmdFirewall) Run ¶
func (c *CmdFirewall) Run() error
type CmdLogin ¶
----------------------------------------------------------------------------------------
type CmdServers ¶
func (*CmdServers) Init ¶
func (c *CmdServers) Init()
func (*CmdServers) Run ¶
func (c *CmdServers) Run() error
type CmdWireGuard ¶
func (*CmdWireGuard) Init ¶
func (c *CmdWireGuard) Init()
func (*CmdWireGuard) Run ¶
func (c *CmdWireGuard) Run() error
type NotImplemented ¶
type NotImplemented struct {
Message string
}
NotImplemented error
func (NotImplemented) Error ¶
func (e NotImplemented) Error() string
type TipType ¶
type TipType uint
const ( TipHelp TipType = iota TipHelpFull TipType = iota TipHelpCommand TipType = iota TipLogout TipType = iota TipLogin TipType = iota TipForceLogin TipType = iota TipServers TipType = iota TipConnectHelp TipType = iota TipDisconnect TipType = iota TipFirewallDisable TipType = iota TipFirewallEnable TipType = iota TipLastConnection TipType = iota )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.