Documentation
¶
Index ¶
- Variables
- type BaseDatabaseTenant
- func (c *BaseDatabaseTenant) CollectAllItems() ([]*Item, error)
- func (c *BaseDatabaseTenant) CredentialsManager() oauth2.CredentialsManager
- func (c *BaseDatabaseTenant) Daemon() Daemon
- func (c *BaseDatabaseTenant) LoadItem(sellerSKU string) (*Item, error)
- func (c *BaseDatabaseTenant) SaveItem(item *Item) error
- type BaseTenant
- type Daemon
- type IntegrationClient
- type Item
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type BaseDatabaseTenant ¶
type BaseDatabaseTenant struct {
*BaseTenant
Dao *daos.Dao
}
BaseDatabaseTenant is a base tenant, with default implementations directly connected to the database.
func (*BaseDatabaseTenant) CollectAllItems ¶
func (c *BaseDatabaseTenant) CollectAllItems() ([]*Item, error)
func (*BaseDatabaseTenant) CredentialsManager ¶
func (c *BaseDatabaseTenant) CredentialsManager() oauth2.CredentialsManager
func (*BaseDatabaseTenant) Daemon ¶
func (c *BaseDatabaseTenant) Daemon() Daemon
func (*BaseDatabaseTenant) LoadItem ¶
func (c *BaseDatabaseTenant) LoadItem(sellerSKU string) (*Item, error)
func (*BaseDatabaseTenant) SaveItem ¶
func (c *BaseDatabaseTenant) SaveItem(item *Item) error
type BaseTenant ¶
type BaseTenant struct {
ID string
Name string
Vendor string
Config json.RawMessage
TenantGroup string
}
func TenantFrom ¶
func TenantFrom(record *pbm.Record) *BaseTenant
func (*BaseTenant) Tenant ¶
func (b *BaseTenant) Tenant() *BaseTenant
type IntegrationClient ¶
type IntegrationClient interface {
Tenant() *BaseTenant
CollectAllItems() ([]*Item, error)
LoadItem(sku string) (*Item, error)
SaveItem(item *Item) error
CredentialsManager() oauth2.CredentialsManager
Daemon() Daemon
}
IntegrationClient is an interface for any vendor clients.
Click to show internal directories.
Click to hide internal directories.