hrm

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const REQUEST_SUCCEEDED = "Success"

Variables

This section is empty.

Functions

func CheckError

func CheckError(e error)

func GETProtectedResource added in v0.2.0

func GETProtectedResource(
	endpoint string, token string, timeout float64) (*http.Response, error)

func GETProtectedResourceStatusCode

func GETProtectedResourceStatusCode(
	endpoint string, token string, timeout float64) int

func GETResource added in v0.2.0

func GETResource(
	endpoint string,
	timeout float64,

	maxTries int) (*http.Response, error)

GET request without verification. maxTries > 1 is used when getting OAS file from server

func GETResourceStatusCode

func GETResourceStatusCode(
	endpoint string,
	timeout float64,

	maxTries int) int

Send GET request, return status code of reply

Types

type HRM

type HRM struct {
	Timeout            float64
	ScGet              []int
	FailedRequestsList []string
	// contains filtered or unexported fields
}

func New

func New(
	baseApiURL string, authToken string,
	timeout float64, getStatusCodes []int) HRM

func (*HRM) MakeGETRequests

func (h *HRM) MakeGETRequests(endpoints []string, singleThread bool)

Jump to

Keyboard shortcuts

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