httpclient

package
v0.5.89 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: MIT Imports: 9 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 FeelgoodResponseToStruct added in v0.1.0

func FeelgoodResponseToStruct(response *resty.Response, obj interface{}) error

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