Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Identifiable ¶
type Identifiable interface { IsIdentifiable() GetID() string }
type Purchase ¶
type Purchase struct { Product *Product `json:"product"` Wallet Wallet `json:"wallet"` Quantity int `json:"quantity"` }
func (Purchase) GetQuantity ¶
type Sale ¶
type Sale struct { Product *Product `json:"product"` Rating int `json:"rating"` Location string `json:"location"` }
func (Sale) GetLocation ¶
type User ¶
type User struct { ID string `json:"id"` Username string `json:"username"` History []History `json:"history"` RealName string `json:"realName"` }
func (User) IsIdentifiable ¶
func (User) IsIdentifiable()
type WalletType1 ¶
type WalletType1 struct { Currency string `json:"currency"` Amount float64 `json:"amount"` SpecialField1 string `json:"specialField1"` }
func (WalletType1) GetAmount ¶
func (this WalletType1) GetAmount() float64
func (WalletType1) GetCurrency ¶
func (this WalletType1) GetCurrency() string
func (WalletType1) IsWallet ¶
func (WalletType1) IsWallet()
type WalletType2 ¶
type WalletType2 struct { Currency string `json:"currency"` Amount float64 `json:"amount"` SpecialField2 string `json:"specialField2"` }
func (WalletType2) GetAmount ¶
func (this WalletType2) GetAmount() float64
func (WalletType2) GetCurrency ¶
func (this WalletType2) GetCurrency() string
func (WalletType2) IsWallet ¶
func (WalletType2) IsWallet()
Click to show internal directories.
Click to hide internal directories.