model

package
Version: v0.0.0-...-3bbc2a3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: MIT Imports: 0 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailHost

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

func (EmailHost) IsEntity

func (EmailHost) IsEntity()

type Manufacturer

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

func (Manufacturer) IsEntity

func (Manufacturer) IsEntity()

type Product

type Product struct {
	ID           string        `json:"id"`
	Manufacturer *Manufacturer `json:"manufacturer"`
	Reviews      []*Review     `json:"reviews"`
}

func (Product) IsEntity

func (Product) IsEntity()

type Review

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

type User

type User struct {
	ID    string     `json:"id"`
	Host  *EmailHost `json:"host"`
	Email string     `json:"email"`
}

func (User) IsEntity

func (User) IsEntity()

Jump to

Keyboard shortcuts

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