httpclient

package
v2.0.0-beta5 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config, opts ...Option) *resty.Client

func WrapClient

func WrapClient(client *resty.Client) *http.Client

Types

type Config

type Config struct {
	Debug     bool          `koanf:"debug"`
	UserAgent string        `koanf:"user_agent"`
	Timeout   time.Duration `koanf:"timeout"`
}

type Option

type Option func(*options)

func WithLogger

func WithLogger(logger zerolog.Logger) Option

Jump to

Keyboard shortcuts

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