hrm

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(e error)

func GETProtectedResourceStatusCode

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

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
	GetSC              []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