Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllCacheControlScope = []CacheControlScope{ CacheControlScopePublic, CacheControlScopePrivate, }
Functions ¶
This section is empty.
Types ¶
type Book ¶
type Book struct { Isbn string `json:"isbn"` Title *string `json:"title,omitempty"` Year *int `json:"year,omitempty"` Upc string `json:"upc"` Sku string `json:"sku"` Name *string `json:"name,omitempty"` Price *string `json:"price,omitempty"` Details *ProductDetailsBook `json:"details,omitempty"` }
func (Book) GetDetails ¶
func (this Book) GetDetails() ProductDetails
type CacheControlScope ¶
type CacheControlScope string
const ( CacheControlScopePublic CacheControlScope = "PUBLIC" CacheControlScopePrivate CacheControlScope = "PRIVATE" )
func (CacheControlScope) IsValid ¶
func (e CacheControlScope) IsValid() bool
func (CacheControlScope) MarshalGQL ¶
func (e CacheControlScope) MarshalGQL(w io.Writer)
func (CacheControlScope) String ¶
func (e CacheControlScope) String() string
func (*CacheControlScope) UnmarshalGQL ¶
func (e *CacheControlScope) UnmarshalGQL(v interface{}) error
type Car ¶
type Car struct { ID string `json:"id"` Description *string `json:"description,omitempty"` Price *string `json:"price,omitempty"` }
func (Car) GetDescription ¶
type Error ¶
func (Error) IsMetadataOrError ¶
func (Error) IsMetadataOrError()
type Furniture ¶
type Furniture struct { Upc string `json:"upc"` Sku string `json:"sku"` Name *string `json:"name,omitempty"` Price *string `json:"price,omitempty"` Brand Brand `json:"brand,omitempty"` Metadata []MetadataOrError `json:"metadata,omitempty"` Details *ProductDetailsFurniture `json:"details,omitempty"` }
func (Furniture) GetDetails ¶
func (this Furniture) GetDetails() ProductDetails
type KeyValue ¶
func (KeyValue) IsMetadataOrError ¶
func (KeyValue) IsMetadataOrError()
type MetadataOrError ¶
type MetadataOrError interface {
IsMetadataOrError()
}
type Product ¶
type Product interface { IsProduct() GetUpc() string GetSku() string GetName() *string GetPrice() *string GetDetails() ProductDetails }
type ProductDetails ¶
type ProductDetails interface { IsProductDetails() GetCountry() *string }
type ProductDetailsBook ¶
type ProductDetailsBook struct { Country *string `json:"country,omitempty"` Pages *int `json:"pages,omitempty"` }
func (ProductDetailsBook) GetCountry ¶
func (this ProductDetailsBook) GetCountry() *string
func (ProductDetailsBook) IsProductDetails ¶
func (ProductDetailsBook) IsProductDetails()
type ProductDetailsFurniture ¶
type ProductDetailsFurniture struct { Country *string `json:"country,omitempty"` Color *string `json:"color,omitempty"` }
func (ProductDetailsFurniture) GetCountry ¶
func (this ProductDetailsFurniture) GetCountry() *string
func (ProductDetailsFurniture) IsProductDetails ¶
func (ProductDetailsFurniture) IsProductDetails()
type User ¶
Click to show internal directories.
Click to hide internal directories.