bazaar/pkg/models/shop.go

24 lines
344 B
Go

package models
import (
"net/url"
"github.com/fmartingr/bazaar/pkg/clients"
)
type ShopFactory func(baseShop ShopOptions) Shop
type Shop interface {
Get(*url.URL) (*Product, error)
}
type ShopOptions struct {
Client clients.Client
}
func NewShopOptions(client clients.Client) ShopOptions {
return ShopOptions{
Client: client,
}
}