Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShopClient ¶
type ShopClient struct { Name string // contains filtered or unexported fields }
func New ¶
func New(username, password, shopAPI string) (*ShopClient, error)
func (*ShopClient) AddToCart ¶
func (s *ShopClient) AddToCart(prodID, qunatity uint) error
AddToCart adds a product to the client cart
func (*ShopClient) Checkout ¶
func (s *ShopClient) Checkout() error
func (*ShopClient) Login ¶
func (s *ShopClient) Login() error
func (*ShopClient) PerformActionLoop ¶
func (s *ShopClient) PerformActionLoop(itemsToBuy map[uint]uint) error
Click to show internal directories.
Click to hide internal directories.