common

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultContentTypeHeader

func DefaultContentTypeHeader() map[string]string

func Deserialize

func Deserialize[T any](data []byte) (*T, error)

func DoRequest

func DoRequest(method string, addr string, body []byte, headers map[string]string, timeout time.Duration, tlsConfig *config.TLSConfig) ([]byte, error)

func Serialize

func Serialize[T any](obj T) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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