sdk

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAndParse

func ReadAndParse(ctx context.Context, httpReply *http.Response, reply any) error

ReadAndParse reads the body of the http reply, unmarshals it into the "reply" object and closes the http reply body.

func ReadAndParseWithLogging added in v0.0.2

func ReadAndParseWithLogging(
	ctx context.Context,
	logger *logx.Logger,
	httpReply *http.Response,
	reply any,
	tag string,
) error

ReadAndParseWithLogging works like ReadAndParse but also logs the response body.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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