Documentation
¶
Index ¶
- Variables
- func New(opts ...OptionFunc) provider.Provider
- func NewCustomerGroupResource() resource.Resource
- func NewDebugTransport(innerTransport http.RoundTripper) http.RoundTripper
- func NewProductCategoryResource() resource.Resource
- func NewProductCollectionResource() resource.Resource
- func NewRegionResource() resource.Resource
- func NewSalesChannelResource() resource.Resource
- func NewShippingProfileResource() resource.Resource
- func NewStoreResource() resource.Resource
- type LogTransport
- type OptionFunc
Constants ¶
This section is empty.
Variables ¶
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 ¶
NewCustomerGroupResource is a helper function to simplify the provider implementation.
func NewDebugTransport ¶
func NewDebugTransport(innerTransport http.RoundTripper) http.RoundTripper
func NewProductCategoryResource ¶
NewProductCategoryResource is a helper function to simplify the provider implementation.
func NewProductCollectionResource ¶
NewProductCollectionResource is a helper function to simplify the provider implementation.
func NewRegionResource ¶
NewRegionResource is a helper function to simplify the provider implementation.
func NewSalesChannelResource ¶
NewSalesChannelResource is a helper function to simplify the provider implementation.
func NewShippingProfileResource ¶
NewShippingProfileResource is a helper function to simplify the provider implementation.
func NewStoreResource ¶
NewStoreResource is a helper function to simplify the provider implementation.
Types ¶
type LogTransport ¶
type LogTransport struct {
// contains filtered or unexported fields
}
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
Source Files
¶
- customer_group_model.go
- customer_group_resource.go
- debug.go
- product_category_model.go
- product_category_resource.go
- product_collection_model.go
- product_collection_resource.go
- provider.go
- region_model.go
- region_resource.go
- sales_channel_model.go
- sales_channel_resource.go
- shipping_profile_model.go
- shipping_profile_resource.go
- store_model.go
- store_resource.go