model

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 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 DetatchedQuestion added in v1.0.4

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

func (DetatchedQuestion) GetBody added in v1.0.4

func (this DetatchedQuestion) GetBody() string

func (DetatchedQuestion) GetUpc added in v1.0.4

func (this DetatchedQuestion) GetUpc() string

func (DetatchedQuestion) IsComment added in v1.0.4

func (DetatchedQuestion) IsComment()

type Iface added in v1.0.4

type Iface interface {
	IsIface()
	GetSubject() string
}

type OtherQuestion added in v1.0.4

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

func (OtherQuestion) GetBody added in v1.0.4

func (this OtherQuestion) GetBody() string

func (OtherQuestion) GetUpc added in v1.0.4

func (this OtherQuestion) GetUpc() string

func (OtherQuestion) IsComment added in v1.0.4

func (OtherQuestion) IsComment()

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"`
	Subject string `json:"subject"`
}

func (Question) GetBody

func (this Question) GetBody() string

func (Question) GetSubject added in v1.0.4

func (this Question) GetSubject() string

func (Question) GetUpc

func (this Question) GetUpc() string

func (Question) IsAttachment

func (Question) IsAttachment()

func (Question) IsComment

func (Question) IsComment()

func (Question) IsIface added in v1.0.4

func (Question) IsIface()

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"`
	Subject string  `json:"subject"`
}

func (Video) GetSubject added in v1.0.4

func (this Video) GetSubject() string

func (Video) IsAttachment

func (Video) IsAttachment()

func (Video) IsIface added in v1.0.4

func (Video) IsIface()

Jump to

Keyboard shortcuts

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