catalog

package
v0.0.0-...-323dbff Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorNotOk = errors.New("request status not ok")
)

Functions

This section is empty.

Types

type Gateway

type Gateway interface {
	Product(id string) (*model.Product, error)
}

func NewGateway

func NewGateway(c *retryablehttp.Client, host string) Gateway

type Product

type Product struct {
	Id    string  `json:"id"`
	Name  string  `json:"name"`
	Brand string  `json:"brand"`
	Price float32 `json:"price"`
	Image string  `json:"image"`
}

Jump to

Keyboard shortcuts

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