model

package
v0.0.0-...-83efb8c Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Amazon

type Amazon struct {
	Referrer *string `json:"referrer,omitempty"`
}

func (Amazon) IsBrand

func (Amazon) IsBrand()

type Book

type Book struct {
	Isbn    string              `json:"isbn"`
	Title   *string             `json:"title,omitempty"`
	Year    *int                `json:"year,omitempty"`
	Upc     string              `json:"upc"`
	Sku     string              `json:"sku"`
	Name    *string             `json:"name,omitempty"`
	Price   *string             `json:"price,omitempty"`
	Details *ProductDetailsBook `json:"details,omitempty"`
}

func (Book) GetDetails

func (this Book) GetDetails() ProductDetails

func (Book) GetName

func (this Book) GetName() *string

func (Book) GetPrice

func (this Book) GetPrice() *string

func (Book) GetSku

func (this Book) GetSku() string

func (Book) GetUpc

func (this Book) GetUpc() string

func (Book) IsEntity

func (Book) IsEntity()

func (Book) IsProduct

func (Book) IsProduct()

type Brand

type Brand interface {
	IsBrand()
}

type CacheControlScope

type CacheControlScope string
const (
	CacheControlScopePublic  CacheControlScope = "PUBLIC"
	CacheControlScopePrivate CacheControlScope = "PRIVATE"
)

func (CacheControlScope) IsValid

func (e CacheControlScope) IsValid() bool

func (CacheControlScope) MarshalGQL

func (e CacheControlScope) MarshalGQL(w io.Writer)

func (CacheControlScope) String

func (e CacheControlScope) String() string

func (*CacheControlScope) UnmarshalGQL

func (e *CacheControlScope) UnmarshalGQL(v interface{}) error

type Car

type Car struct {
	ID          string  `json:"id"`
	Description *string `json:"description,omitempty"`
	Price       *string `json:"price,omitempty"`
}

func (Car) GetDescription

func (this Car) GetDescription() *string

func (Car) GetID

func (this Car) GetID() string

func (Car) GetPrice

func (this Car) GetPrice() *string

func (Car) IsEntity

func (Car) IsEntity()

func (Car) IsThing

func (Car) IsThing()

func (Car) IsVehicle

func (Car) IsVehicle()

type Error

type Error struct {
	Code    *int    `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
}

func (Error) IsMetadataOrError

func (Error) IsMetadataOrError()

type Furniture

type Furniture struct {
	Upc      string                   `json:"upc"`
	Sku      string                   `json:"sku"`
	Name     *string                  `json:"name,omitempty"`
	Price    *string                  `json:"price,omitempty"`
	Brand    Brand                    `json:"brand,omitempty"`
	Metadata []MetadataOrError        `json:"metadata,omitempty"`
	Details  *ProductDetailsFurniture `json:"details,omitempty"`
}

func (Furniture) GetDetails

func (this Furniture) GetDetails() ProductDetails

func (Furniture) GetName

func (this Furniture) GetName() *string

func (Furniture) GetPrice

func (this Furniture) GetPrice() *string

func (Furniture) GetSku

func (this Furniture) GetSku() string

func (Furniture) GetUpc

func (this Furniture) GetUpc() string

func (Furniture) IsEntity

func (Furniture) IsEntity()

func (Furniture) IsProduct

func (Furniture) IsProduct()

type Ikea

type Ikea struct {
	Asile *int `json:"asile,omitempty"`
}

func (Ikea) IsBrand

func (Ikea) IsBrand()

func (Ikea) IsThing

func (Ikea) IsThing()

type KeyValue

type KeyValue struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

func (KeyValue) IsMetadataOrError

func (KeyValue) IsMetadataOrError()

type MetadataOrError

type MetadataOrError interface {
	IsMetadataOrError()
}

type Product

type Product interface {
	IsProduct()
	GetUpc() string
	GetSku() string
	GetName() *string
	GetPrice() *string
	GetDetails() ProductDetails
}

type ProductDetails

type ProductDetails interface {
	IsProductDetails()
	GetCountry() *string
}

type ProductDetailsBook

type ProductDetailsBook struct {
	Country *string `json:"country,omitempty"`
	Pages   *int    `json:"pages,omitempty"`
}

func (ProductDetailsBook) GetCountry

func (this ProductDetailsBook) GetCountry() *string

func (ProductDetailsBook) IsProductDetails

func (ProductDetailsBook) IsProductDetails()

type ProductDetailsFurniture

type ProductDetailsFurniture struct {
	Country *string `json:"country,omitempty"`
	Color   *string `json:"color,omitempty"`
}

func (ProductDetailsFurniture) GetCountry

func (this ProductDetailsFurniture) GetCountry() *string

func (ProductDetailsFurniture) IsProductDetails

func (ProductDetailsFurniture) IsProductDetails()

type Thing

type Thing interface {
	IsThing()
}

type User

type User struct {
	ID      string  `json:"id"`
	Vehicle Vehicle `json:"vehicle,omitempty"`
	Thing   Thing   `json:"thing,omitempty"`
}

func (User) IsEntity

func (User) IsEntity()

type Van

type Van struct {
	ID          string  `json:"id"`
	Description *string `json:"description,omitempty"`
	Price       *string `json:"price,omitempty"`
}

func (Van) GetDescription

func (this Van) GetDescription() *string

func (Van) GetID

func (this Van) GetID() string

func (Van) GetPrice

func (this Van) GetPrice() *string

func (Van) IsEntity

func (Van) IsEntity()

func (Van) IsVehicle

func (Van) IsVehicle()

type Vehicle

type Vehicle interface {
	IsVehicle()
	GetID() string
	GetDescription() *string
	GetPrice() *string
}

Jump to

Keyboard shortcuts

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