httpclient

package
v0.6.27 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client(clientConfig *ClientConfig) *resty.Client

func Default added in v0.2.12

func Default() *resty.Client

func External added in v0.4.9

func External(cfg *config.Config) *resty.Client

func Internal added in v0.4.2

func Internal(ctx context.Context, cfg *InternalClientConfig) (*resty.Client, error)

Types

type ClientConfig

type ClientConfig struct {
	Host    string
	Port    string
	Headers map[string]string
}

type InternalClientConfig added in v0.5.77

type InternalClientConfig struct {
	RetryCount       int
	RetryWaitTime    time.Duration
	ServiceName      string
	Debug            bool
	AuthMSHost       string
	WithInternalAuth bool
}

Jump to

Keyboard shortcuts

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