Documentation ¶ Index ¶ Variables type Updater func New(client *http.Client) *Updater func (u *Updater) FetchServers(ctx context.Context, minServers int) (servers []models.Server, err error) Constants ¶ This section is empty. Variables ¶ View Source var ( ErrHTTPStatusCodeNotOK = errors.New("HTTP status code not OK") ErrDecodeResponseBody = errors.New("failed decoding response body") ) View Source var ( ErrNoIP = errors.New("no IP address for VPN server") ErrIPIsNotV4 = errors.New("IP address is not IPv4") ErrIPIsNotV6 = errors.New("IP address is not IPv6") ErrVPNTypeNotSupported = errors.New("VPN type not supported") ) Functions ¶ This section is empty. Types ¶ type Updater ¶ type Updater struct { // contains filtered or unexported fields } func New ¶ func New(client *http.Client) *Updater func (*Updater) FetchServers ¶ func (u *Updater) FetchServers(ctx context.Context, minServers int) ( servers []models.Server, err error, ) Source Files ¶ View all Source files api.go hosttoserver.go ips.go servers.go updater.go Click to show internal directories. Click to hide internal directories.