repository

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: GPL-3.0 Imports: 8 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 Repo

type Repo struct {
	Client HttpClient
	// contains filtered or unexported fields
}

func New

func New(currentVersion string) *Repo

func (*Repo) CurrentVersion

func (r *Repo) CurrentVersion() string

func (*Repo) LatestVersion

func (r *Repo) LatestVersion() (string, error)

type Repository

type Repository interface {
	CurrentVersion() string
	LatestVersion() (string, error)
}

Jump to

Keyboard shortcuts

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