Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateConfig ¶
Function for recreate VPN config
Types ¶
type VpnClient ¶
Vpn CLient struct for comunicate with vpn service
func CreateVpnCLient ¶
Generator function for initializate Vpn Client It returns Vpn client Object
func (*VpnClient) AddRoute ¶
Function for download vpn config from vpn service. In future release this function will be changed to request to S3 storage Now it returns vpn config in plain text and error
func (*VpnClient) CreateConfig ¶
Create VPN config for VpnClient This function send http request to ovpn service to register new user It returns nill or error from vpn service if user already exists or connection error
func (*VpnClient) DownloadVpnConfig ¶
Function for download vpn config from vpn service. In future release this function will be changed to request to S3 storage Now it returns vpn config in plain text and error