http

package
v0.0.0-...-a529750 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeRequest

func MakeRequest(method, url, authorisationDigestValue string, body io.Reader) (*http.Response, error)

Types

type IHTTPClient

type IHTTPClient interface {
	GetStatsResponse(baseUrl, username, password, salt string) (*http.Response, error)
}

func GetHTTPClient

func GetHTTPClient(model constants.MinerSeries) (IHTTPClient, error)

type S19HTTPClient

type S19HTTPClient struct{}

func (*S19HTTPClient) GetStatsResponse

func (c *S19HTTPClient) GetStatsResponse(baseUrl, username, password, salt string) (*http.Response, error)

Jump to

Keyboard shortcuts

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