go_wix_store

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 5 Imported by: 0

README

go-wix-store

wix product fetcher for go

TODO

  • add collection functionality
  • add create functionality
  • potential order handler option
  • Replace List() func with individual query sets

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Product ProductService
	// contains filtered or unexported fields
}

func GenClient

func GenClient(opts ...Option) *Client

func NewClientWithToken

func NewClientWithToken(apiToken string, storeId string) *Client

type Option

type Option func(shopClient *Client)

func WithRestyClient

func WithRestyClient(r *resty.Client) Option

type ProductService

type ProductService interface {
	List(key string, query string) (products Products, err error)
	ListAll() (products Products, err error)
	Get(id string) (Product, error)
}

type ProductServiceOp

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

func (ProductServiceOp) Get

func (p ProductServiceOp) Get(id string) (product Product, err error)

func (ProductServiceOp) List

func (p ProductServiceOp) List(key string, query string) (products Products, err error)

func (ProductServiceOp) ListAll

func (p ProductServiceOp) ListAll() (products Products, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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