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: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

type Book struct {
	Isbn         string `json:"isbn"`
	InStock      *bool  `json:"inStock,omitempty"`
	IsCheckedOut *bool  `json:"isCheckedOut,omitempty"`
}

func (Book) GetInStock

func (this Book) GetInStock() *bool

func (Book) IsEntity

func (Book) IsEntity()

func (Book) IsProduct

func (Book) IsProduct()

type Furniture

type Furniture struct {
	Sku     string `json:"sku"`
	InStock *bool  `json:"inStock,omitempty"`
	IsHeavy *bool  `json:"isHeavy,omitempty"`
}

func (Furniture) GetInStock

func (this Furniture) GetInStock() *bool

func (Furniture) IsEntity

func (Furniture) IsEntity()

func (Furniture) IsProduct

func (Furniture) IsProduct()

type Product

type Product interface {
	IsProduct()
	GetInStock() *bool
}

type User

type User struct {
	ID              string          `json:"id"`
	Metadata        []*UserMetadata `json:"metadata,omitempty"`
	GoodDescription *bool           `json:"goodDescription,omitempty"`
}

func (User) IsEntity

func (User) IsEntity()

type UserMetadata

type UserMetadata struct {
	Description *string `json:"description,omitempty"`
}

Jump to

Keyboard shortcuts

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