client

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeRequest

func MakeRequest(_ context.Context, reqConfig RequestConfig) (*utils.Response, error)

MakeRequest compresses the payload and exports it to LM Platform

Types

type RequestConfig

type RequestConfig struct {
	Client      *http.Client
	RateLimiter rateLimiter.RateLimiter
	Url         string
	Body        []byte
	Uri         string
	Method      string
	Token       string
	Gzip        bool
	Headers     map[string]string
}

Jump to

Keyboard shortcuts

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