request

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const API = "/_search"

Variables

This section is empty.

Functions

func APIRequestCode

func APIRequestCode(url, method string, auth string, request models.ReadCsvCode) (models.ResponseBodyNextPage, error)

APIRequestCode makes an API request to the specified URL using the specified HTTP method and authentication header. It returns a models.ResponseBodyNextPage struct containing the API response body and an error (if any).

func APIRequestLawsuit

func APIRequestLawsuit(url, method string, auth string, request models.ReadCsvLaawsuit) (models.ResponseBodyLawsuit, error)

APIRequestLawsuit makes an API request to the specified URL using the specified HTTP method and authentication header. It returns a models.ResponseBodyLawsuit struct containing the API response body and an error (if any).

func AsyncAPIRequestCode

func AsyncAPIRequestCode(users []models.ReadCsvCode, numberOfWorkers int, url string, method string, auth string) ([]models.ResponseBodyNextPage, error)

AsyncAPIRequestCode makes API requests asynchronously

func AsyncAPIRequestLawsuit

func AsyncAPIRequestLawsuit(users []models.ReadCsvLaawsuit, numberOfWorkers int, url string, method string, auth string) ([]models.ResponseBodyLawsuit, error)

AsyncAPIRequestLawsuit makes API requests asynchronously

func StreamInputsCode

func StreamInputsCode(done <-chan struct{}, inputs []models.ReadCsvCode) <-chan models.ReadCsvCode

StreamInputsCode sends inputs from a slice to a channel

func StreamInputsLawsuits

func StreamInputsLawsuits(done <-chan struct{}, inputs []models.ReadCsvLaawsuit) <-chan models.ReadCsvLaawsuit

StreamInputsLawsuits sends inputs from a slice to a channel

Types

This section is empty.

Jump to

Keyboard shortcuts

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