model

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllWhich = []Which{
	WhichA,
	WhichB,
}

Functions

This section is empty.

Types

type A added in v1.0.4

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

func (A) GetName added in v1.0.4

func (this A) GetName() string

func (A) IsAb added in v1.0.4

func (A) IsAb()

func (A) IsNamer added in v1.0.4

func (A) IsNamer()

type Ab added in v1.0.4

type Ab interface {
	IsAb()
}

type AbstractListItem added in v1.0.4

type AbstractListItem interface {
	IsAbstractListItem()
	GetObj() OtherInterface
}

type B added in v1.0.4

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

func (B) GetName added in v1.0.4

func (this B) GetName() string

func (B) IsAb added in v1.0.4

func (B) IsAb()

func (B) IsNamer added in v1.0.4

func (B) IsNamer()

type C added in v1.0.4

type C struct {
	Name *CDerObj `json:"name"`
}

func (C) GetName added in v1.0.4

func (this C) GetName() *CDerObj

func (C) IsCDer added in v1.0.4

func (C) IsCDer()

func (C) IsCd added in v1.0.4

func (C) IsCd()

type CDer added in v1.0.4

type CDer interface {
	IsCDer()
	GetName() *CDerObj
}

type CDerObj added in v1.0.4

type CDerObj struct {
	First  string `json:"first"`
	Middle string `json:"middle"`
	Last   string `json:"last"`
}

type Cat

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

type Cd added in v1.0.4

type Cd interface {
	IsCd()
}

type ConcreteListItem1 added in v1.0.4

type ConcreteListItem1 struct {
	Obj OtherInterface `json:"obj"`
}

func (ConcreteListItem1) GetObj added in v1.0.4

func (this ConcreteListItem1) GetObj() OtherInterface

func (ConcreteListItem1) IsAbstractListItem added in v1.0.4

func (ConcreteListItem1) IsAbstractListItem()

type ConcreteListItem2 added in v1.0.4

type ConcreteListItem2 struct {
	Obj OtherInterface `json:"obj"`
}

func (ConcreteListItem2) GetObj added in v1.0.4

func (this ConcreteListItem2) GetObj() OtherInterface

func (ConcreteListItem2) IsAbstractListItem added in v1.0.4

func (ConcreteListItem2) IsAbstractListItem()

type D added in v1.0.4

type D struct {
	Name *CDerObj `json:"name"`
}

func (D) GetName added in v1.0.4

func (this D) GetName() *CDerObj

func (D) IsCDer added in v1.0.4

func (D) IsCDer()

func (D) IsCd added in v1.0.4

func (D) IsCd()

type History

type History interface {
	IsHistory()
}

type Identifiable

type Identifiable interface {
	IsIdentifiable()
	GetID() string
}

type Info

type Info interface {
	IsInfo()
	GetQuantity() int
}

type Name added in v1.0.4

type Name interface {
	IsName()
	GetName() string
}

type Namer added in v1.0.4

type Namer interface {
	IsNamer()
	GetName() string
}

type OtherInterface added in v1.0.4

type OtherInterface interface {
	IsOtherInterface()
	GetName() string
	GetNames() []string
}

type Product

type Product struct {
	Upc string `json:"upc"`
}

func (Product) IsEntity

func (Product) IsEntity()

type Purchase

type Purchase struct {
	Product  *Product `json:"product"`
	Wallet   Wallet   `json:"wallet"`
	Quantity int      `json:"quantity"`
}

func (Purchase) GetQuantity

func (this Purchase) GetQuantity() int

func (Purchase) IsHistory

func (Purchase) IsHistory()

func (Purchase) IsInfo

func (Purchase) IsInfo()

type Sale

type Sale struct {
	Product  *Product `json:"product"`
	Rating   int      `json:"rating"`
	Location string   `json:"location"`
}

func (Sale) GetLocation

func (this Sale) GetLocation() string

func (Sale) IsHistory

func (Sale) IsHistory()

func (Sale) IsStore

func (Sale) IsStore()

type SomeInterface added in v1.0.4

type SomeInterface interface {
	IsSomeInterface()
	GetSomeObject() *SomeObject
}

type SomeNestedInterface added in v1.0.4

type SomeNestedInterface interface {
	IsSomeNestedInterface()
	GetOtherInterfaces() []SomeInterface
}

type SomeNestedType1 added in v1.0.4

type SomeNestedType1 struct {
	OtherInterfaces []SomeInterface `json:"otherInterfaces"`
}

func (SomeNestedType1) GetOtherInterfaces added in v1.0.4

func (this SomeNestedType1) GetOtherInterfaces() []SomeInterface

func (SomeNestedType1) IsSomeNestedInterface added in v1.0.4

func (SomeNestedType1) IsSomeNestedInterface()

type SomeNestedType2 added in v1.0.4

type SomeNestedType2 struct {
	OtherInterfaces []SomeInterface `json:"otherInterfaces"`
}

func (SomeNestedType2) GetOtherInterfaces added in v1.0.4

func (this SomeNestedType2) GetOtherInterfaces() []SomeInterface

func (SomeNestedType2) IsSomeNestedInterface added in v1.0.4

func (SomeNestedType2) IsSomeNestedInterface()

type SomeObject added in v1.0.4

type SomeObject struct {
	A string `json:"a"`
	B string `json:"b"`
	C string `json:"c"`
}

type SomeType1 added in v1.0.4

type SomeType1 struct {
	Name       string      `json:"name"`
	Age        int         `json:"age"`
	Names      []string    `json:"names"`
	SomeObject *SomeObject `json:"someObject"`
}

func (SomeType1) GetName added in v1.0.4

func (this SomeType1) GetName() string

func (SomeType1) GetNames added in v1.0.4

func (this SomeType1) GetNames() []string

func (SomeType1) GetSomeObject added in v1.0.4

func (this SomeType1) GetSomeObject() *SomeObject

func (SomeType1) IsOtherInterface added in v1.0.4

func (SomeType1) IsOtherInterface()

func (SomeType1) IsSomeInterface added in v1.0.4

func (SomeType1) IsSomeInterface()

type SomeType2 added in v1.0.4

type SomeType2 struct {
	Name       string      `json:"name"`
	Height     float64     `json:"height"`
	Names      []string    `json:"names"`
	SomeObject *SomeObject `json:"someObject"`
}

func (SomeType2) GetName added in v1.0.4

func (this SomeType2) GetName() string

func (SomeType2) GetNames added in v1.0.4

func (this SomeType2) GetNames() []string

func (SomeType2) GetSomeObject added in v1.0.4

func (this SomeType2) GetSomeObject() *SomeObject

func (SomeType2) IsOtherInterface added in v1.0.4

func (SomeType2) IsOtherInterface()

func (SomeType2) IsSomeInterface added in v1.0.4

func (SomeType2) IsSomeInterface()

type SomeType3 added in v1.0.4

type SomeType3 struct {
	SomeObject *SomeObject `json:"someObject"`
}

func (SomeType3) GetSomeObject added in v1.0.4

func (this SomeType3) GetSomeObject() *SomeObject

func (SomeType3) IsSomeInterface added in v1.0.4

func (SomeType3) IsSomeInterface()

type Store

type Store interface {
	IsStore()
	GetLocation() string
}

type Title added in v1.0.4

type Title interface {
	IsTitle()
	GetTitle() string
}

type TitleName added in v1.0.4

type TitleName struct {
	A     string `json:"a"`
	B     string `json:"b"`
	C     string `json:"c"`
	Title string `json:"title"`
	Name  string `json:"name"`
}

func (TitleName) GetName added in v1.0.4

func (this TitleName) GetName() string

func (TitleName) GetTitle added in v1.0.4

func (this TitleName) GetTitle() string

func (TitleName) IsName added in v1.0.4

func (TitleName) IsName()

func (TitleName) IsTitle added in v1.0.4

func (TitleName) IsTitle()

type User

type User struct {
	ID       string    `json:"id"`
	Username string    `json:"username"`
	History  []History `json:"history"`
	RealName string    `json:"realName"`
}

func (User) GetID

func (this User) GetID() string

func (User) IsEntity

func (User) IsEntity()

func (User) IsIdentifiable

func (User) IsIdentifiable()

type Wallet

type Wallet interface {
	IsWallet()
	GetCurrency() string
	GetAmount() float64
}

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()

type Which added in v1.0.4

type Which string
const (
	WhichA Which = "A"
	WhichB Which = "B"
)

func (Which) IsValid added in v1.0.4

func (e Which) IsValid() bool

func (Which) MarshalGQL added in v1.0.4

func (e Which) MarshalGQL(w io.Writer)

func (Which) String added in v1.0.4

func (e Which) String() string

func (*Which) UnmarshalGQL added in v1.0.4

func (e *Which) UnmarshalGQL(v interface{}) error

Jump to

Keyboard shortcuts

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