internal

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DebugTransport = &LogTransport{
	transport: http.DefaultTransport,
}

Functions

func New

func New(opts ...OptionFunc) provider.Provider

New is a helper function to simplify provider server and testing implementation.

func NewCustomerGroupResource

func NewCustomerGroupResource() resource.Resource

NewCustomerGroupResource is a helper function to simplify the provider implementation.

func NewDebugTransport

func NewDebugTransport(innerTransport http.RoundTripper) http.RoundTripper

func NewProductCategoryResource

func NewProductCategoryResource() resource.Resource

NewProductCategoryResource is a helper function to simplify the provider implementation.

func NewProductCollectionResource

func NewProductCollectionResource() resource.Resource

NewProductCollectionResource is a helper function to simplify the provider implementation.

func NewRegionResource

func NewRegionResource() resource.Resource

NewRegionResource is a helper function to simplify the provider implementation.

func NewSalesChannelResource

func NewSalesChannelResource() resource.Resource

NewSalesChannelResource is a helper function to simplify the provider implementation.

func NewShippingProfileResource

func NewShippingProfileResource() resource.Resource

NewShippingProfileResource is a helper function to simplify the provider implementation.

func NewStoreResource

func NewStoreResource() resource.Resource

NewStoreResource is a helper function to simplify the provider implementation.

Types

type LogTransport

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

func (*LogTransport) RoundTrip

func (c *LogTransport) RoundTrip(request *http.Request) (*http.Response, error)

type OptionFunc

type OptionFunc func(p *medusaProvider)

func WithDebugClient

func WithDebugClient() OptionFunc

func WithRecorderClient

func WithRecorderClient(file string, mode recorder.Mode) (OptionFunc, func() error)

func WithRetryableClient

func WithRetryableClient(retries int) OptionFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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