transport

package
v0.0.0-...-bb1ca51 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPTransporter

type HTTPTransporter struct {
	// contains filtered or unexported fields
}

HTTPTransport is a centralized mean for downstream request. It takes care of request timeouts an traceID propagation.

func NewHTTP

func NewHTTP(timeout time.Duration) *HTTPTransporter

func (*HTTPTransporter) Get

func (tp *HTTPTransporter) Get(ctx context.Context, addr string, header map[string][]string) ([]byte, error)

Get exectutes an http post request.

func (*HTTPTransporter) Post

func (tp *HTTPTransporter) Post(ctx context.Context, addr string, header map[string][]string, body io.Reader) ([]byte, error)

Post exectutes an http post request.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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