updater

package
v0.0.0-...-f1f3472 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWireguardPublicKeyMalformed = errors.New("wireguard public key is malformed")
	ErrWireguardPublicKeyNotFound  = errors.New("wireguard public key not found")
)
View Source
var (
	ErrNoIDInServerName      = errors.New("no ID in server name")
	ErrInvalidIDInServerName = errors.New("invalid ID in server name")
)
View Source
var ErrHTTPStatusCodeNotOK = errors.New("HTTP status code not OK")
View Source
var ErrNotIPv4 = errors.New("IP address is not IPv4")

Functions

This section is empty.

Types

type Updater

type Updater struct {
	// contains filtered or unexported fields
}

func New

func New(client *http.Client, warner common.Warner) *Updater

func (*Updater) FetchServers

func (u *Updater) FetchServers(ctx context.Context, minServers int) (
	servers []models.Server, err error,
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL