contracts

package
v0.0.0-...-84aa726 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	*http.Response
}

type ShellyClient

type ShellyClient interface {
	RetryHTTPCheck(ctx context.Context, resp *http.Response, err error) (bool, error)
	NewRequest(method, endpoint string, opts interface{}) (*retryablehttp.Request, error)
	ParseUrl(method, endpoint string, opts interface{}) (string, error)
	SetAdditionalHeaders(request *retryablehttp.Request, headers http.Header)
	SetBasicAuth(request *retryablehttp.Request) error
	Do(req *retryablehttp.Request, v interface{}) (*Response, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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