types

package
v0.0.0-...-53bdc36 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AHConnector

type AHConnector struct {
	AccessToken string `json:"accessToken"`
}

func (*AHConnector) GetAnonymousAccessToken

func (ah *AHConnector) GetAnonymousAccessToken() error

func (*AHConnector) GetCategories

func (ah *AHConnector) GetCategories()

func (*AHConnector) GetProductByBarcode

func (ah *AHConnector) GetProductByBarcode(barcode string) (Product, error)

func (*AHConnector) GetProductByQuery

func (ah *AHConnector) GetProductByQuery(query string) (Product, error)

func (*AHConnector) GetSubCategories

func (ah *AHConnector) GetSubCategories(categoryId int)

type Image

type Image struct {
	Height int64  `json:"height"`
	Width  int64  `json:"width"`
	URL    string `json:"url"`
}

type Ingredient

type Ingredient struct {
	ID         int    `json:"ID"`
	Ingredient string `json:"ingredient"`
	RecipeID   int    `json:"recipeID"`
}

type Product

type Product struct {
	Title          string   `json:"title"`
	Barcode        string   `json:"barcode"`
	MainCategory   string   `json:"mainCategory"`
	MainCategories []string `json:"mainCategories"`
	SubCategory    string   `json:"subCategory"`
	Brand          string   `json:"brand"`
	Images         []Image  `json:"images"`
}

func (*Product) SetMainProductCategories

func (product *Product) SetMainProductCategories()

type Recipe

type Recipe struct {
	ID          int      `json:"id"`
	Name        string   `json:"name"`
	Ingredients []string `json:"ingredients"`
	//Tags 		[]string 	`json:"tags"`
	URL      string `json:"url"`
	ImageURL string `json:"imageURL"`
}

Jump to

Keyboard shortcuts

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