version

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpClient

type HttpClient interface {
	Do(req *http.Request) (*http.Response, error)
}

type Version

type Version interface {
	CurrentVersion() string
	LatestVersion(ctx context.Context) (string, error)
	IsUpdateAvailable(ctx context.Context) (isAvailable bool, version string, err error)
}

func New

func New(repositoryOwner, repositoryName, currentVersion string) Version

Jump to

Keyboard shortcuts

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