helpers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFunctionInPQueue

func AddFunctionInPQueue(pq *pqueue.PriorityQueue, function any, functionArgs []any, priority int) (*pqueue.QueueItem, error)

func GetDuration

func GetDuration(header http.Header) (time.Duration, error)

func GetFunctionName

func GetFunctionName(function interface{}) string

func GetFunctionSignature

func GetFunctionSignature(function interface{}, args []interface{}) string

func HandleHttpResponseStatusCode

func HandleHttpResponseStatusCode(response *data.ResponseParams, params data.RequestParams) (*data.ResponseParams, error)

func HandleTooManyRequests

func HandleTooManyRequests(header http.Header, params data.RequestParams) (*data.ResponseParams, error)

func MakeHttpRequest

func MakeHttpRequest(params data.RequestParams) (*data.ResponseParams, error)

func MakeRequestWithPagination

func MakeRequestWithPagination(params data.RequestParams) ([]byte, error)

func RemoveDuplicateColumn

func RemoveDuplicateColumn(arr []string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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