client

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultErrDecoder

func DefaultErrDecoder(_ context.Context, res *resty.Response) error

func Module

func Module() *module.Module

Types

type Base

type Base struct {
	// contains filtered or unexported fields
}

func (*Base) Request

func (r *Base) Request(ctx context.Context) *resty.Request

type DriverWrapper

type DriverWrapper wrapper.Wrapper[*resty.Client]

func WithTransport

func WithTransport(tr http.RoundTripper) DriverWrapper

type ErrDecoder

type ErrDecoder func(context.Context, *resty.Response) error

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

func NewFactory

func NewFactory(cfg *config.Config, wrappers []DriverWrapper) *Factory

func (*Factory) Get

func (f *Factory) Get(name string, errDecoder ErrDecoder, driverWrappers ...DriverWrapper) *Base

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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