# Packages
Package mesh implements mesh related data structure conversions.
# Functions
ByGroup is a Comparison function meant for use with github.com/NordSecurity/nordvpn-linux/slices.ContainsFunc function.
ByTag is a Comparison function meant for use with github.com/NordSecurity/nordvpn-linux/slices.ContainsFunc function.
ExtractError from the response if it exists
if an error was returned, do not try to read a response again.
IsConnectableVia returns true if it's possible to connect to server using a given technology.
IsConnectableWithProtocol behaves like IsConnectableVia, but also includes protocol.
IsObfuscated returns a filter for keeping only obfuscated servers.
IsOnline returns true for online servers.
IsServerObfuscated returns ServerObfuscationStatus for a given server tag.
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
CDNURL is the url for NordCDN.
CredentialsURL defines url to generate openvpn credentials.
CurrentUserURL defines url to check user's metadata.
DebFileinfoURLFormat is the path to debian repository's package information.
No description provided by the author
HTTPProxy represents the http proxy technology.
InsightsURL defines url to get information about ip Used by JobInsights every 30mins to set the user country.
L2TP represents the l2tp technology.
No description provided by the author
No description provided by the author
NotAServerName returned when server with such name has not been found (there is no hostname beginning with given server tag).
No description provided by the author
No description provided by the author
OpenVPNTCP represents the OpenVpn tcp technology.
OpenVPNTCPObfuscated represents the openvpn tcp obfuscated technology.
OpenVPNUDP represents the OpenVPN udp technology.
OpenVPNUDPObfuscated represents the openvpn udp obfuscated technology.
PlanURL defines endpoint to fetch plans.
PPTP represents the pptp technology.
No description provided by the author
No description provided by the author
No description provided by the author
RecommendedServersURL defines url for recommended servers list.
No description provided by the author
RepoTypeProduction defines production repo type.
RepoTypeTest defines non-production (qa, development) repo type.
RpmRepoMdURL is the path to rpm repository's information file.
RpmRepoMdURLFormat is the path to rpm repository's information.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ServerNotObfuscated status returned when server is not obfuscated.
ServerObfuscated status returned when server is obfuscated.
ServersCountriesURL defines url to get servers countries list Used by JobCountries every 6h to populate /var/lib/nordvpn/data/countries.dat.
ServersURL defines url to get servers list Used as a fallback if /v1/servers/recommendations returns an empty list or a http error.
ServersURLConnectQuery is all servers query optimized for minimal dm size required to create servers maps and calculate their penalty scores so instead of downloading 15mb we download 1.5mb and when connecting, download all info about specific server
no problems with this logic so far.
ServersURLSpecificQuery defines query params for a specific server.
ServicesURL defines url to check user's current/expired services.
Socks5 represents the socks 5 technology.
#nosec.
#nosec.
No description provided by the author
Unknown is used for invalid cases.
UsersURL defines url to create a new user.
No description provided by the author
WireguardTech represents wireguard technology.
# Variables
ErrBadRequest is returned for 400 HTTP responses.
ErrConflict is returned for 409 HTTP responses.
No description provided by the author
No description provided by the author
No description provided by the author
ErrForbidden is returned for 403 HTTP responses.
No description provided by the author
ErrMaximumDeviceCount is returned for some of the 400 HTTP responses.
No description provided by the author
No description provided by the author
ErrNotFound is returned for 404 HTTP responses.
ErrPeerEndpointsNotProvided is returned when peer has on endpoints.
ErrPeerOSNotProvided is returned when peer does not have os name or os version set.
ErrPublicKeyNotProvided is returned when peer does not have a public key set.
error codes returned for meshnet nicknames, when 400 HTTP responses.
ErrServerInternal is returned for 500 HTTP responses.
ErrTooManyRequests is returned for 429 HTTP responses.
ErrUnauthorized is returned for 401 HTTP responses.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
Country is a weird struct in that it is defined in two different ways by the backend.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
Authentication is responsible for verifying user's identity.
CDN provides methods to interact with Nord's Content Delivery Network.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SubscriptionAPI is responsible for fetching the subscription data of the user.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Predicate function used in algorithms like filter.
No description provided by the author
ServerObfuscationStatus is the return status of IsServerObfuscated.
No description provided by the author
ServerTechnology represents the nordvpn server technology.
No description provided by the author
Status is used by Server and Technology to communicate availability.
No description provided by the author