model

package
v1.67.4 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment added in v1.64.0

type Attachment interface {
	IsAttachment()
}

type Cat added in v1.64.0

type Cat struct {
	Name string `json:"name"`
}

type Comment added in v1.64.0

type Comment interface {
	IsComment()
	GetUpc() string
	GetBody() string
}

type Product

type Product struct {
	Upc string `json:"upc"`
}

func (Product) IsEntity

func (Product) IsEntity()

type Question added in v1.64.0

type Question struct {
	Upc  string `json:"upc"`
	Body string `json:"body"`
}

func (Question) GetBody added in v1.64.0

func (this Question) GetBody() string

func (Question) GetUpc added in v1.64.0

func (this Question) GetUpc() string

func (Question) IsAttachment added in v1.64.0

func (Question) IsAttachment()

func (Question) IsComment added in v1.64.0

func (Question) IsComment()

type Rating added in v1.64.0

type Rating struct {
	Upc   string `json:"upc"`
	Body  string `json:"body"`
	Score int    `json:"score"`
}

func (Rating) GetBody added in v1.64.0

func (this Rating) GetBody() string

func (Rating) GetUpc added in v1.64.0

func (this Rating) GetUpc() string

func (Rating) IsAttachment added in v1.64.0

func (Rating) IsAttachment()

func (Rating) IsComment added in v1.64.0

func (Rating) IsComment()

type Review

type Review struct {
	Body    string
	Author  *User
	Product *Product
}

type User

type User struct {
	ID string `json:"id"`
}

func (User) IsEntity

func (User) IsEntity()

type Video added in v1.64.0

type Video struct {
	Upc  string  `json:"upc"`
	Size float64 `json:"size"`
}

func (Video) IsAttachment added in v1.64.0

func (Video) IsAttachment()

Jump to

Keyboard shortcuts

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