client

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoRequest added in v1.0.0

func DoRequest(ctx context.Context, reqConfig RequestConfig) (*http.Response, error)

DoRequest compresses the payload and exports it to LM Platform

func New added in v1.3.0

func New() *http.Client

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
	PayloadMetadata interface{}
	UserAgent       string
}

Jump to

Keyboard shortcuts

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