network

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 10 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 {
	Get(string) (*http.Response, error)
}

type Network

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

func NewNetwork

func NewNetwork(client HttpClient, downloadsUrl string) *Network

func (*Network) DownloadRelease

func (n *Network) DownloadRelease(release, destDir string) (string, error)

func (*Network) GetLastReleaseName

func (n *Network) GetLastReleaseName() (string, error)

Jump to

Keyboard shortcuts

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