setup

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opt

type Opt func(*resty.Client)

func Debug

func Debug(debug bool) Opt

func WithAccept

func WithAccept(accept string) Opt

func WithAuthSchema

func WithAuthSchema(scheme string) Opt

func WithAuthToken

func WithAuthToken(authToken string) Opt

func WithBaseURL

func WithBaseURL(baseURL string) Opt

func WithContentType

func WithContentType(contentType string) Opt

func WithHeader

func WithHeader(k, v string) Opt

func WithRequestMiddleware

func WithRequestMiddleware(middleware func(*resty.Client, *resty.Request) error) Opt

func WithResponseMiddleware

func WithResponseMiddleware(middleware func(*resty.Client, *resty.Response) error) Opt

func WithRetryCount

func WithRetryCount(count int) Opt

func WithTimeout

func WithTimeout(timeout time.Duration) Opt

Jump to

Keyboard shortcuts

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