wresty

package
v0.0.0-...-2e0c1f2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 5 Imported by: 0

README

wresty

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client(ctx context.Context, altKeys ...string) *resty.Client

Client get previously injected resty.Client

func Installer

func Installer(opts ...Option) wext.Installer

Installer create wext.Installer

func R

func R(ctx context.Context, altKeys ...string) *resty.Request

R create a resty.Request from context

Types

type Option

type Option = func(opts *options)

Option option for installation

func WithHTTPClientSetup

func WithHTTPClientSetup(fn func(hc *http.Client) *http.Client) Option

WithHTTPClientSetup setup http.HTTPClient

func WithRestySetup

func WithRestySetup(fn func(r *resty.Client) *resty.Client) Option

WithRestySetup setup resty.Client

Jump to

Keyboard shortcuts

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