opencart

package
v0.0.0-...-8f9f3ed Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package opencart implements opencart tenant client.

Index

Constants

View Source
const Vendor = "OPENCART"

Variables

View Source
var MessageNoResults = "No results!"

Functions

This section is empty.

Types

type Client

type Client struct {
	*models.BaseTenant
	DatabaseTenant *models.BaseDatabaseTenant
	Config         *Config
}

Client is a opencart client.

func (*Client) CollectAllItems

func (c *Client) CollectAllItems() ([]*models.Item, error)

CollectAllItems collects and returns all items registered in this client.

func (*Client) CredentialsManager

func (c *Client) CredentialsManager() oauth2.CredentialsManager

func (*Client) Daemon

func (c *Client) Daemon() models.Daemon

func (*Client) LoadItem

func (c *Client) LoadItem(sku string) (*models.Item, error)

LoadItem returns item info for a single SKU.

func (*Client) SaveItem

func (c *Client) SaveItem(item *models.Item) error

SaveItem saves item info for a single SKU. This only implements updating the product stock.

func (*Client) Start

func (c *Client) Start() error

type Config

type Config struct {
	Domain   string `json:"domain"`
	Username string `json:"username"`
	Password string `json:"password"`
}

Config is a opencart config.

Jump to

Keyboard shortcuts

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