Documentation ¶
Index ¶
- Constants
- func APIRequestCode(url, method string, auth string, request models.ReadCsvCode) (models.ResponseBodyNextPage, error)
- func APIRequestLawsuit(url, method string, auth string, request models.ReadCsvLaawsuit) (models.ResponseBodyLawsuit, error)
- func AsyncAPIRequestCode(users []models.ReadCsvCode, numberOfWorkers int, url string, method string, ...) ([]models.ResponseBodyNextPage, error)
- func AsyncAPIRequestLawsuit(users []models.ReadCsvLaawsuit, numberOfWorkers int, url string, method string, ...) ([]models.ResponseBodyLawsuit, error)
- func StreamInputsCode(done <-chan struct{}, inputs []models.ReadCsvCode) <-chan models.ReadCsvCode
- func StreamInputsLawsuits(done <-chan struct{}, inputs []models.ReadCsvLaawsuit) <-chan models.ReadCsvLaawsuit
Constants ¶
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.