Documentation
¶
Index ¶
- Variables
- type A
- type Ab
- type AbstractListItem
- type B
- type C
- type CDer
- type CDerObj
- type Cat
- type Cd
- type ConcreteListItem1
- type ConcreteListItem2
- type D
- type History
- type Identifiable
- type Info
- type Name
- type Namer
- type OtherInterface
- type Product
- type Purchase
- type Query
- type Sale
- type SomeInterface
- type SomeNestedInterface
- type SomeNestedType1
- type SomeNestedType2
- type SomeObject
- type SomeType1
- type SomeType2
- type SomeType3
- type Store
- type Title
- type TitleName
- type User
- type Wallet
- type WalletType1
- type WalletType2
- type Which
Constants ¶
This section is empty.
Variables ¶
View Source
var AllWhich = []Which{ WhichA, WhichB, }
Functions ¶
This section is empty.
Types ¶
type AbstractListItem ¶ added in v1.0.4
type AbstractListItem interface {
IsAbstractListItem()
GetObj() OtherInterface
}
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 Identifiable ¶
type Identifiable interface {
IsIdentifiable()
GetID() string
}
type OtherInterface ¶ added in v1.0.4
type Purchase ¶
type Purchase struct {
Product *Product `json:"product"`
Wallet Wallet `json:"wallet,omitempty"`
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 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,omitempty"`
}
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,omitempty"`
}
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 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) 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) 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 TitleName ¶ added in v1.0.4
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()
type Which ¶ added in v1.0.4
type Which string
func (Which) MarshalGQL ¶ added in v1.0.4
func (Which) MarshalJSON ¶ added in v1.6.0
func (*Which) UnmarshalGQL ¶ added in v1.0.4
func (*Which) UnmarshalJSON ¶ added in v1.6.0
Click to show internal directories.
Click to hide internal directories.