manager

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrShopNotFound = fmt.Errorf("shop not found for domain")

Functions

This section is empty.

Types

type Manager

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

func NewManager

func NewManager() Manager

func (*Manager) GetShop

func (m *Manager) GetShop(host string) models.Shop

func (*Manager) Register

func (m *Manager) Register(domains []string, shopFactory models.ShopFactory)

func (*Manager) Retrieve

func (m *Manager) Retrieve(productURL string) (*models.Product, error)

Jump to

Keyboard shortcuts

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