Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddKeyResult ¶
type AddKeyResult struct { Status string `json:"status"` ServerKey string `json:"server_key"` ServerPort int `json:"server_port"` ServerIP string `json:"server_ip"` ServerVip string `json:"server_vip"` PeerIP string `json:"peer_ip"` PeerPubkey string `json:"peer_pubkey"` DNSServers []string `json:"dns_servers"` }
type PIAClient ¶
type PIAClient struct {
// contains filtered or unexported fields
}
func NewPIAClient ¶
NewPIAClient creates a new PIA client for with the list of servers populated
type PIAWgClient ¶
type PIAWgClient interface { GetToken() (string, error) AddKey(token, publickey string) (AddKeyResult, error) }
type PIAWgGenerator ¶
type PIAWgGenerator struct {
// contains filtered or unexported fields
}
func NewPIAWgGenerator ¶
func NewPIAWgGenerator(pia PIAWgClient, config PIAWgGeneratorConfig) *PIAWgGenerator
type PIAWgGeneratorConfig ¶
type ServerList ¶
Click to show internal directories.
Click to hide internal directories.