model

package
v2.0.0-...-7724a3b Latest Latest
Warning

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

Go to latest
Published: Dec 12, 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

type Attachment interface {
	IsAttachment()
}

type Cat

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

type Comment

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

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

func (Question) GetBody

func (this Question) GetBody() string

func (Question) GetUpc

func (this Question) GetUpc() string

func (Question) IsAttachment

func (Question) IsAttachment()

func (Question) IsComment

func (Question) IsComment()

type Rating

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

func (Rating) GetBody

func (this Rating) GetBody() string

func (Rating) GetUpc

func (this Rating) GetUpc() string

func (Rating) IsAttachment

func (Rating) IsAttachment()

func (Rating) IsComment

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

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

func (Video) IsAttachment

func (Video) IsAttachment()

Jump to

Keyboard shortcuts

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