Documentation ¶
Index ¶
- func CardHref(cardID interface{}) string
- func CategoryHref(categoryID interface{}) string
- func FactionHref(factionID interface{}) string
- func GroupHref(groupID interface{}) string
- func IndexHref() string
- func MountCardController(service *goa.Service, ctrl CardController)
- func MountCategoryController(service *goa.Service, ctrl CategoryController)
- func MountFactionController(service *goa.Service, ctrl FactionController)
- func MountGroupController(service *goa.Service, ctrl GroupController)
- func MountIndexController(service *goa.Service, ctrl IndexController)
- func MountRarityController(service *goa.Service, ctrl RarityController)
- func RarityHref(rarityID interface{}) string
- type ArtType
- type CardController
- type CardFactionCardContext
- type CardLeaderCardContext
- type CardRarityCardContext
- type CardVariationCardContext
- func (ctx *CardVariationCardContext) InternalServerError() error
- func (ctx *CardVariationCardContext) NotFound() error
- func (ctx *CardVariationCardContext) NotModified() error
- func (ctx *CardVariationCardContext) OK(r *GwentapiVariation) error
- func (ctx *CardVariationCardContext) OKLink(r *GwentapiVariationLink) error
- type CardVariationsCardContext
- func (ctx *CardVariationsCardContext) InternalServerError() error
- func (ctx *CardVariationsCardContext) NotFound() error
- func (ctx *CardVariationsCardContext) NotModified() error
- func (ctx *CardVariationsCardContext) OK(r GwentapiVariationCollection) error
- func (ctx *CardVariationsCardContext) OKLink(r GwentapiVariationLinkCollection) error
- type CategoryController
- type CostType
- type FactionController
- type GroupController
- type GwentapiCard
- type GwentapiCardCollection
- type GwentapiCardLink
- type GwentapiCardLinkCollection
- type GwentapiCategory
- type GwentapiCategoryCollection
- type GwentapiCategoryLink
- type GwentapiCategoryLinkCollection
- type GwentapiFaction
- type GwentapiFactionCollection
- type GwentapiFactionLink
- type GwentapiFactionLinkCollection
- type GwentapiGroup
- type GwentapiGroupCollection
- type GwentapiGroupLink
- type GwentapiGroupLinkCollection
- type GwentapiPagecard
- type GwentapiRarity
- type GwentapiRarityCollection
- type GwentapiRarityLink
- type GwentapiRarityLinkCollection
- type GwentapiResource
- type GwentapiVariation
- type GwentapiVariationCollection
- type GwentapiVariationLink
- type GwentapiVariationLinkCollection
- type IndexController
- type ListCardContext
- type ListCategoryContext
- func (ctx *ListCategoryContext) InternalServerError() error
- func (ctx *ListCategoryContext) NotFound() error
- func (ctx *ListCategoryContext) NotModified() error
- func (ctx *ListCategoryContext) OK(r GwentapiCategoryCollection) error
- func (ctx *ListCategoryContext) OKLink(r GwentapiCategoryLinkCollection) error
- type ListFactionContext
- func (ctx *ListFactionContext) InternalServerError() error
- func (ctx *ListFactionContext) NotFound() error
- func (ctx *ListFactionContext) NotModified() error
- func (ctx *ListFactionContext) OK(r GwentapiFactionCollection) error
- func (ctx *ListFactionContext) OKLink(r GwentapiFactionLinkCollection) error
- type ListGroupContext
- type ListRarityContext
- type RarityController
- type ShowCardContext
- type ShowCategoryContext
- type ShowFactionContext
- type ShowGroupContext
- type ShowIndexContext
- type ShowRarityContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CategoryHref ¶
func CategoryHref(categoryID interface{}) string
CategoryHref returns the resource href.
func FactionHref ¶
func FactionHref(factionID interface{}) string
FactionHref returns the resource href.
func MountCardController ¶
func MountCardController(service *goa.Service, ctrl CardController)
MountCardController "mounts" a Card resource controller on the given service.
func MountCategoryController ¶
func MountCategoryController(service *goa.Service, ctrl CategoryController)
MountCategoryController "mounts" a Category resource controller on the given service.
func MountFactionController ¶
func MountFactionController(service *goa.Service, ctrl FactionController)
MountFactionController "mounts" a Faction resource controller on the given service.
func MountGroupController ¶
func MountGroupController(service *goa.Service, ctrl GroupController)
MountGroupController "mounts" a Group resource controller on the given service.
func MountIndexController ¶
func MountIndexController(service *goa.Service, ctrl IndexController)
MountIndexController "mounts" a Index resource controller on the given service.
func MountRarityController ¶
func MountRarityController(service *goa.Service, ctrl RarityController)
MountRarityController "mounts" a Rarity resource controller on the given service.
func RarityHref ¶
func RarityHref(rarityID interface{}) string
RarityHref returns the resource href.
Types ¶
type ArtType ¶
type ArtType struct { // Name of the artist Artist *string `form:"artist,omitempty" json:"artist,omitempty" xml:"artist,omitempty"` // Href to full size artwork FullsizeImage *string `form:"fullsizeImage,omitempty" json:"fullsizeImage,omitempty" xml:"fullsizeImage,omitempty"` // Href to medium size artwork MediumsizeImage string `form:"mediumsizeImage" json:"mediumsizeImage" xml:"mediumsizeImage"` // Href to thumbnail size artwork ThumbnailImage string `form:"thumbnailImage" json:"thumbnailImage" xml:"thumbnailImage"` }
Type of card art
type CardController ¶
type CardController interface { goa.Muxer CardFaction(*CardFactionCardContext) error CardLeader(*CardLeaderCardContext) error CardRarity(*CardRarityCardContext) error CardVariation(*CardVariationCardContext) error CardVariations(*CardVariationsCardContext) error List(*ListCardContext) error Show(*ShowCardContext) error }
CardController is the controller interface for the Card actions.
type CardFactionCardContext ¶
type CardFactionCardContext struct { context.Context *goa.ResponseData *goa.RequestData IfModifiedSince *string FactionID string Lang string Limit int Offset int }
CardFactionCardContext provides the card cardFaction action context.
func NewCardFactionCardContext ¶
func NewCardFactionCardContext(ctx context.Context, r *http.Request, service *goa.Service) (*CardFactionCardContext, error)
NewCardFactionCardContext parses the incoming request URL and body, performs validations and creates the context used by the card controller cardFaction action.
func (*CardFactionCardContext) InternalServerError ¶
func (ctx *CardFactionCardContext) InternalServerError() error
InternalServerError sends a HTTP response with status code 500.
func (*CardFactionCardContext) NotFound ¶
func (ctx *CardFactionCardContext) NotFound() error
NotFound sends a HTTP response with status code 404.
func (*CardFactionCardContext) NotModified ¶ added in v0.5.6
func (ctx *CardFactionCardContext) NotModified() error
NotModified sends a HTTP response with status code 304.
func (*CardFactionCardContext) OK ¶
func (ctx *CardFactionCardContext) OK(r *GwentapiPagecard) error
OK sends a HTTP response with status code 200.
type CardLeaderCardContext ¶
type CardLeaderCardContext struct { context.Context *goa.ResponseData *goa.RequestData IfModifiedSince *string Lang string Limit int Offset int }
CardLeaderCardContext provides the card cardLeader action context.
func NewCardLeaderCardContext ¶
func NewCardLeaderCardContext(ctx context.Context, r *http.Request, service *goa.Service) (*CardLeaderCardContext, error)
NewCardLeaderCardContext parses the incoming request URL and body, performs validations and creates the context used by the card controller cardLeader action.
func (*CardLeaderCardContext) InternalServerError ¶
func (ctx *CardLeaderCardContext) InternalServerError() error
InternalServerError sends a HTTP response with status code 500.
func (*CardLeaderCardContext) NotFound ¶
func (ctx *CardLeaderCardContext) NotFound() error
NotFound sends a HTTP response with status code 404.
func (*CardLeaderCardContext) NotModified ¶ added in v0.5.6
func (ctx *CardLeaderCardContext) NotModified() error
NotModified sends a HTTP response with status code 304.
func (*CardLeaderCardContext) OK ¶
func (ctx *CardLeaderCardContext) OK(r *GwentapiPagecard) error
OK sends a HTTP response with status code 200.
type CardRarityCardContext ¶ added in v0.5.10
type CardRarityCardContext struct { context.Context *goa.ResponseData *goa.RequestData IfModifiedSince *string Lang string Limit int Offset int RarityID string }
CardRarityCardContext provides the card cardRarity action context.
func NewCardRarityCardContext ¶ added in v0.5.10
func NewCardRarityCardContext(ctx context.Context, r *http.Request, service *goa.Service) (*CardRarityCardContext, error)
NewCardRarityCardContext parses the incoming request URL and body, performs validations and creates the context used by the card controller cardRarity action.
func (*CardRarityCardContext) InternalServerError ¶ added in v0.5.10
func (ctx *CardRarityCardContext) InternalServerError() error
InternalServerError sends a HTTP response with status code 500.
func (*CardRarityCardContext) NotFound ¶ added in v0.5.10
func (ctx *CardRarityCardContext) NotFound() error
NotFound sends a HTTP response with status code 404.
func (*CardRarityCardContext) NotModified ¶ added in v0.5.10
func (ctx *CardRarityCardContext) NotModified() error
NotModified sends a HTTP response with status code 304.
func (*CardRarityCardContext) OK ¶ added in v0.5.10
func (ctx *CardRarityCardContext) OK(r *GwentapiPagecard) error
OK sends a HTTP response with status code 200.
type CardVariationCardContext ¶
type CardVariationCardContext struct { context.Context *goa.ResponseData *goa.RequestData IfModifiedSince *string CardID string Lang string VariationID string }
CardVariationCardContext provides the card cardVariation action context.
func NewCardVariationCardContext ¶
func NewCardVariationCardContext(ctx context.Context, r *http.Request, service *goa.Service) (*CardVariationCardContext, error)
NewCardVariationCardContext parses the incoming request URL and body, performs validations and creates the context used by the card controller cardVariation action.
func (*CardVariationCardContext) InternalServerError ¶
func (ctx *CardVariationCardContext) InternalServerError() error
InternalServerError sends a HTTP response with status code 500.
func (*CardVariationCardContext) NotFound ¶
func (ctx *CardVariationCardContext) NotFound() error
NotFound sends a HTTP response with status code 404.
func (*CardVariationCardContext) NotModified ¶ added in v0.5.6
func (ctx *CardVariationCardContext) NotModified() error
NotModified sends a HTTP response with status code 304.
func (*CardVariationCardContext) OK ¶
func (ctx *CardVariationCardContext) OK(r *GwentapiVariation) error
OK sends a HTTP response with status code 200.
func (*CardVariationCardContext) OKLink ¶
func (ctx *CardVariationCardContext) OKLink(r *GwentapiVariationLink) error
OKLink sends a HTTP response with status code 200.
type CardVariationsCardContext ¶
type CardVariationsCardContext struct { context.Context *goa.ResponseData *goa.RequestData IfModifiedSince *string CardID string Lang string }
CardVariationsCardContext provides the card cardVariations action context.
func NewCardVariationsCardContext ¶
func NewCardVariationsCardContext(ctx context.Context, r *http.Request, service *goa.Service) (*CardVariationsCardContext, error)
NewCardVariationsCardContext parses the incoming request URL and body, performs validations and creates the context used by the card controller cardVariations action.
func (*CardVariationsCardContext) InternalServerError ¶
func (ctx *CardVariationsCardContext) InternalServerError() error
InternalServerError sends a HTTP response with status code 500.
func (*CardVariationsCardContext) NotFound ¶
func (ctx *CardVariationsCardContext) NotFound() error
NotFound sends a HTTP response with status code 404.
func (*CardVariationsCardContext) NotModified ¶ added in v0.5.6
func (ctx *CardVariationsCardContext) NotModified() error
NotModified sends a HTTP response with status code 304.
func (*CardVariationsCardContext) OK ¶
func (ctx *CardVariationsCardContext) OK(r GwentapiVariationCollection) error
OK sends a HTTP response with status code 200.
func (*CardVariationsCardContext) OKLink ¶
func (ctx *CardVariationsCardContext) OKLink(r GwentapiVariationLinkCollection) error
OKLink sends a HTTP response with status code 200.
type CategoryController ¶
type CategoryController interface { goa.Muxer List(*ListCategoryContext) error Show(*ShowCategoryContext) error }
CategoryController is the controller interface for the Category actions.
type CostType ¶
type CostType struct { // Normal cost Normal int `form:"normal" json:"normal" xml:"normal"` // Premium cost Premium int `form:"premium" json:"premium" xml:"premium"` }
Type used to define the associated crafting/milling cost cost
type FactionController ¶
type FactionController interface { goa.Muxer List(*ListFactionContext) error Show(*ShowFactionContext) error }
FactionController is the controller interface for the Faction actions.
type GroupController ¶
type GroupController interface { goa.Muxer List(*ListGroupContext) error Show(*ShowGroupContext) error }
GroupController is the controller interface for the Group actions.
type GwentapiCard ¶
type GwentapiCard struct { // Categories of the card Categories GwentapiCategoryLinkCollection `form:"categories,omitempty" json:"categories,omitempty" xml:"categories,omitempty"` // Faction of the card Faction *GwentapiFactionLink `form:"faction" json:"faction" xml:"faction"` // Flavor text of the card Flavor *string `form:"flavor,omitempty" json:"flavor,omitempty" xml:"flavor,omitempty"` // Group of the card Group *GwentapiGroupLink `form:"group" json:"group" xml:"group"` // API href for making requests on the card Href string `form:"href" json:"href" xml:"href"` // Text of the card detailing its abilities and how it plays Info *string `form:"info,omitempty" json:"info,omitempty" xml:"info,omitempty"` // Name of the card Name string `form:"name" json:"name" xml:"name"` // Positions where the card can be played Positions []string `form:"positions,omitempty" json:"positions,omitempty" xml:"positions,omitempty"` // Strength of the card Strength *int `form:"strength,omitempty" json:"strength,omitempty" xml:"strength,omitempty"` // Unique card UUID UUID string `form:"uuid" json:"uuid" xml:"uuid"` // Variations of the card Variations GwentapiVariationLinkCollection `form:"variations" json:"variations" xml:"variations"` }
A card (default view)
Identifier: application/vnd.gwentapi.card+json; view=default
func (*GwentapiCard) Validate ¶
func (mt *GwentapiCard) Validate() (err error)
Validate validates the GwentapiCard media type instance.
type GwentapiCardCollection ¶
type GwentapiCardCollection []*GwentapiCard
GwentapiCardCollection is the media type for an array of GwentapiCard (default view)
Identifier: application/vnd.gwentapi.card+json; type=collection; view=default
func (GwentapiCardCollection) Validate ¶
func (mt GwentapiCardCollection) Validate() (err error)
Validate validates the GwentapiCardCollection media type instance.
type GwentapiCardLink ¶
type GwentapiCardLink struct { // API href for making requests on the card Href string `form:"href" json:"href" xml:"href"` // Name of the card Name string `form:"name" json:"name" xml:"name"` }
A card (link view)
Identifier: application/vnd.gwentapi.card+json; view=link
func (*GwentapiCardLink) Validate ¶
func (mt *GwentapiCardLink) Validate() (err error)
Validate validates the GwentapiCardLink media type instance.
type GwentapiCardLinkCollection ¶
type GwentapiCardLinkCollection []*GwentapiCardLink
GwentapiCardCollection is the media type for an array of GwentapiCard (link view)
Identifier: application/vnd.gwentapi.card+json; type=collection; view=link
func (GwentapiCardLinkCollection) Validate ¶
func (mt GwentapiCardLinkCollection) Validate() (err error)
Validate validates the GwentapiCardLinkCollection media type instance.
type GwentapiCategory ¶
type GwentapiCategory struct { // API href for making requests on the category Href string `form:"href" json:"href" xml:"href"` // Name of the category Name string `form:"name" json:"name" xml:"name"` // Unique category UUID UUID string `form:"uuid" json:"uuid" xml:"uuid"` }
A card category (default view)
Identifier: application/vnd.gwentapi.category+json; view=default
func (*GwentapiCategory) Validate ¶
func (mt *GwentapiCategory) Validate() (err error)
Validate validates the GwentapiCategory media type instance.
type GwentapiCategoryCollection ¶
type GwentapiCategoryCollection []*GwentapiCategory
GwentapiCategoryCollection is the media type for an array of GwentapiCategory (default view)
Identifier: application/vnd.gwentapi.category+json; type=collection; view=default
func (GwentapiCategoryCollection) Validate ¶
func (mt GwentapiCategoryCollection) Validate() (err error)
Validate validates the GwentapiCategoryCollection media type instance.
type GwentapiCategoryLink ¶
type GwentapiCategoryLink struct { // API href for making requests on the category Href string `form:"href" json:"href" xml:"href"` // Name of the category Name string `form:"name" json:"name" xml:"name"` }
A card category (link view)
Identifier: application/vnd.gwentapi.category+json; view=link
func (*GwentapiCategoryLink) Validate ¶
func (mt *GwentapiCategoryLink) Validate() (err error)
Validate validates the GwentapiCategoryLink media type instance.
type GwentapiCategoryLinkCollection ¶
type GwentapiCategoryLinkCollection []*GwentapiCategoryLink
GwentapiCategoryCollection is the media type for an array of GwentapiCategory (link view)
Identifier: application/vnd.gwentapi.category+json; type=collection; view=link
func (GwentapiCategoryLinkCollection) Validate ¶
func (mt GwentapiCategoryLinkCollection) Validate() (err error)
Validate validates the GwentapiCategoryLinkCollection media type instance.
type GwentapiFaction ¶
type GwentapiFaction struct { // API href for making requests on the faction Href string `form:"href" json:"href" xml:"href"` // Name of the faction Name string `form:"name" json:"name" xml:"name"` // Unique faction UUID UUID string `form:"uuid" json:"uuid" xml:"uuid"` }
A card faction (default view)
Identifier: application/vnd.gwentapi.faction+json; view=default
func (*GwentapiFaction) Validate ¶
func (mt *GwentapiFaction) Validate() (err error)
Validate validates the GwentapiFaction media type instance.
type GwentapiFactionCollection ¶
type GwentapiFactionCollection []*GwentapiFaction
GwentapiFactionCollection is the media type for an array of GwentapiFaction (default view)
Identifier: application/vnd.gwentapi.faction+json; type=collection; view=default
func (GwentapiFactionCollection) Validate ¶
func (mt GwentapiFactionCollection) Validate() (err error)
Validate validates the GwentapiFactionCollection media type instance.
type GwentapiFactionLink ¶
type GwentapiFactionLink struct { // API href for making requests on the faction Href string `form:"href" json:"href" xml:"href"` // Name of the faction Name string `form:"name" json:"name" xml:"name"` }
A card faction (link view)
Identifier: application/vnd.gwentapi.faction+json; view=link
func (*GwentapiFactionLink) Validate ¶
func (mt *GwentapiFactionLink) Validate() (err error)
Validate validates the GwentapiFactionLink media type instance.
type GwentapiFactionLinkCollection ¶
type GwentapiFactionLinkCollection []*GwentapiFactionLink
GwentapiFactionCollection is the media type for an array of GwentapiFaction (link view)
Identifier: application/vnd.gwentapi.faction+json; type=collection; view=link
func (GwentapiFactionLinkCollection) Validate ¶
func (mt GwentapiFactionLinkCollection) Validate() (err error)
Validate validates the GwentapiFactionLinkCollection media type instance.
type GwentapiGroup ¶
type GwentapiGroup struct { // API href for making requests on the group Href string `form:"href" json:"href" xml:"href"` // Name of the group Name string `form:"name" json:"name" xml:"name"` // Unique group UUID UUID string `form:"uuid" json:"uuid" xml:"uuid"` }
A card group (default view)
Identifier: application/vnd.gwentapi.group+json; view=default
func (*GwentapiGroup) Validate ¶
func (mt *GwentapiGroup) Validate() (err error)
Validate validates the GwentapiGroup media type instance.
type GwentapiGroupCollection ¶
type GwentapiGroupCollection []*GwentapiGroup
GwentapiGroupCollection is the media type for an array of GwentapiGroup (default view)
Identifier: application/vnd.gwentapi.group+json; type=collection; view=default
func (GwentapiGroupCollection) Validate ¶
func (mt GwentapiGroupCollection) Validate() (err error)
Validate validates the GwentapiGroupCollection media type instance.
type GwentapiGroupLink ¶
type GwentapiGroupLink struct { // API href for making requests on the group Href string `form:"href" json:"href" xml:"href"` // Name of the group Name string `form:"name" json:"name" xml:"name"` }
A card group (link view)
Identifier: application/vnd.gwentapi.group+json; view=link
func (*GwentapiGroupLink) Validate ¶
func (mt *GwentapiGroupLink) Validate() (err error)
Validate validates the GwentapiGroupLink media type instance.
type GwentapiGroupLinkCollection ¶
type GwentapiGroupLinkCollection []*GwentapiGroupLink
GwentapiGroupCollection is the media type for an array of GwentapiGroup (link view)
Identifier: application/vnd.gwentapi.group+json; type=collection; view=link
func (GwentapiGroupLinkCollection) Validate ¶
func (mt GwentapiGroupLinkCollection) Validate() (err error)
Validate validates the GwentapiGroupLinkCollection media type instance.
type GwentapiPagecard ¶
type GwentapiPagecard struct { // Total number of cards stored in the database Count int `form:"count" json:"count" xml:"count"` // Href to the next page Next *string `form:"next,omitempty" json:"next,omitempty" xml:"next,omitempty"` // Href to the previous page Previous *string `form:"previous,omitempty" json:"previous,omitempty" xml:"previous,omitempty"` // Results of the page containing cards Results GwentapiCardLinkCollection `form:"results" json:"results" xml:"results"` }
Paginated card (default view)
Identifier: application/vnd.gwentapi.pagecard+json; view=default
func (*GwentapiPagecard) Validate ¶
func (mt *GwentapiPagecard) Validate() (err error)
Validate validates the GwentapiPagecard media type instance.
type GwentapiRarity ¶
type GwentapiRarity struct { // API href for making requests on the rarity Href string `form:"href" json:"href" xml:"href"` // Name of the rarity Name string `form:"name" json:"name" xml:"name"` // Unique rarity UUID UUID string `form:"uuid" json:"uuid" xml:"uuid"` }
A card rarity (default view)
Identifier: application/vnd.gwentapi.rarity+json; view=default
func (*GwentapiRarity) Validate ¶
func (mt *GwentapiRarity) Validate() (err error)
Validate validates the GwentapiRarity media type instance.
type GwentapiRarityCollection ¶
type GwentapiRarityCollection []*GwentapiRarity
GwentapiRarityCollection is the media type for an array of GwentapiRarity (default view)
Identifier: application/vnd.gwentapi.rarity+json; type=collection; view=default
func (GwentapiRarityCollection) Validate ¶
func (mt GwentapiRarityCollection) Validate() (err error)
Validate validates the GwentapiRarityCollection media type instance.
type GwentapiRarityLink ¶
type GwentapiRarityLink struct { // API href for making requests on the rarity Href string `form:"href" json:"href" xml:"href"` // Name of the rarity Name string `form:"name" json:"name" xml:"name"` }
A card rarity (link view)
Identifier: application/vnd.gwentapi.rarity+json; view=link
func (*GwentapiRarityLink) Validate ¶
func (mt *GwentapiRarityLink) Validate() (err error)
Validate validates the GwentapiRarityLink media type instance.
type GwentapiRarityLinkCollection ¶
type GwentapiRarityLinkCollection []*GwentapiRarityLink
GwentapiRarityCollection is the media type for an array of GwentapiRarity (link view)
Identifier: application/vnd.gwentapi.rarity+json; type=collection; view=link
func (GwentapiRarityLinkCollection) Validate ¶
func (mt GwentapiRarityLinkCollection) Validate() (err error)
Validate validates the GwentapiRarityLinkCollection media type instance.
type GwentapiResource ¶
type GwentapiResource struct { // API href for making requests on cards Cards string `form:"cards" json:"cards" xml:"cards"` // API href for making requests on categories Categories string `form:"categories" json:"categories" xml:"categories"` // API href for making requests on factions Factions string `form:"factions" json:"factions" xml:"factions"` // API href for making requests on groups Groups string `form:"groups" json:"groups" xml:"groups"` // API href for making requests on rarities Rarities string `form:"rarities" json:"rarities" xml:"rarities"` // Href linking to the swagger definition Swagger string `form:"swagger" json:"swagger" xml:"swagger"` // Semver of the software that is currently running Version string `form:"version" json:"version" xml:"version"` }
Listing of all available resource endpoint and a link to the api definition (default view)
Identifier: application/vnd.gwentapi.resource+json; view=default
func (*GwentapiResource) Validate ¶
func (mt *GwentapiResource) Validate() (err error)
Validate validates the GwentapiResource media type instance.
type GwentapiVariation ¶
type GwentapiVariation struct { // Artworks of the card variation. Art *ArtType `form:"art,omitempty" json:"art,omitempty" xml:"art,omitempty"` // Describe from which set the variation comes from and its general availability Availability string `form:"availability" json:"availability" xml:"availability"` // Crafting cost of the card variation. Craft *CostType `form:"craft,omitempty" json:"craft,omitempty" xml:"craft,omitempty"` // API href for making requests on the artwork Href string `form:"href" json:"href" xml:"href"` // Milling cost of the card variation. Mill *CostType `form:"mill,omitempty" json:"mill,omitempty" xml:"mill,omitempty"` // Rarity of the card Rarity *GwentapiRarityLink `form:"rarity" json:"rarity" xml:"rarity"` // Unique artwork UUID UUID string `form:"uuid" json:"uuid" xml:"uuid"` }
Variation of a card containing artworks, crafting/milling cost, set availability, and rarity. (default view)
Identifier: application/vnd.gwentapi.variation+json; view=default
func (*GwentapiVariation) Validate ¶
func (mt *GwentapiVariation) Validate() (err error)
Validate validates the GwentapiVariation media type instance.
type GwentapiVariationCollection ¶
type GwentapiVariationCollection []*GwentapiVariation
GwentapiVariationCollection is the media type for an array of GwentapiVariation (default view)
Identifier: application/vnd.gwentapi.variation+json; type=collection; view=default
func (GwentapiVariationCollection) Validate ¶
func (mt GwentapiVariationCollection) Validate() (err error)
Validate validates the GwentapiVariationCollection media type instance.
type GwentapiVariationLink ¶
type GwentapiVariationLink struct { // Describe from which set the variation comes from and its general availability Availability string `form:"availability" json:"availability" xml:"availability"` // API href for making requests on the artwork Href string `form:"href" json:"href" xml:"href"` // Rarity of the card Rarity *GwentapiRarityLink `form:"rarity" json:"rarity" xml:"rarity"` }
Variation of a card containing artworks, crafting/milling cost, set availability, and rarity. (link view)
Identifier: application/vnd.gwentapi.variation+json; view=link
func (*GwentapiVariationLink) Validate ¶
func (mt *GwentapiVariationLink) Validate() (err error)
Validate validates the GwentapiVariationLink media type instance.
type GwentapiVariationLinkCollection ¶
type GwentapiVariationLinkCollection []*GwentapiVariationLink
GwentapiVariationCollection is the media type for an array of GwentapiVariation (link view)
Identifier: application/vnd.gwentapi.variation+json; type=collection; view=link
func (GwentapiVariationLinkCollection) Validate ¶
func (mt GwentapiVariationLinkCollection) Validate() (err error)
Validate validates the GwentapiVariationLinkCollection media type instance.
type IndexController ¶
type IndexController interface { goa.Muxer Show(*ShowIndexContext) error }
IndexController is the controller interface for the Index actions.
type ListCardContext ¶
type ListCardContext struct { context.Context *goa.ResponseData *goa.RequestData IfModifiedSince *string Lang string Limit int Name *string Offset int }
ListCardContext provides the card list action context.
func NewListCardContext ¶
func NewListCardContext(ctx context.Context, r *http.Request, service *goa.Service) (*ListCardContext, error)
NewListCardContext parses the incoming request URL and body, performs validations and creates the context used by the card controller list action.
func (*ListCardContext) InternalServerError ¶
func (ctx *ListCardContext) InternalServerError() error
InternalServerError sends a HTTP response with status code 500.
func (*ListCardContext) NotFound ¶
func (ctx *ListCardContext) NotFound() error
NotFound sends a HTTP response with status code 404.
func (*ListCardContext) NotModified ¶ added in v0.5.6
func (ctx *ListCardContext) NotModified() error
NotModified sends a HTTP response with status code 304.
func (*ListCardContext) OK ¶
func (ctx *ListCardContext) OK(r *GwentapiPagecard) error
OK sends a HTTP response with status code 200.
type ListCategoryContext ¶
type ListCategoryContext struct { context.Context *goa.ResponseData *goa.RequestData IfModifiedSince *string }
ListCategoryContext provides the category list action context.
func NewListCategoryContext ¶
func NewListCategoryContext(ctx context.Context, r *http.Request, service *goa.Service) (*ListCategoryContext, error)
NewListCategoryContext parses the incoming request URL and body, performs validations and creates the context used by the category controller list action.
func (*ListCategoryContext) InternalServerError ¶
func (ctx *ListCategoryContext) InternalServerError() error
InternalServerError sends a HTTP response with status code 500.
func (*ListCategoryContext) NotFound ¶
func (ctx *ListCategoryContext) NotFound() error
NotFound sends a HTTP response with status code 404.
func (*ListCategoryContext) NotModified ¶ added in v0.5.6
func (ctx *ListCategoryContext) NotModified() error
NotModified sends a HTTP response with status code 304.
func (*ListCategoryContext) OK ¶
func (ctx *ListCategoryContext) OK(r GwentapiCategoryCollection) error
OK sends a HTTP response with status code 200.
func (*ListCategoryContext) OKLink ¶
func (ctx *ListCategoryContext) OKLink(r GwentapiCategoryLinkCollection) error
OKLink sends a HTTP response with status code 200.
type ListFactionContext ¶
type ListFactionContext struct { context.Context *goa.ResponseData *goa.RequestData IfModifiedSince *string }
ListFactionContext provides the faction list action context.
func NewListFactionContext ¶
func NewListFactionContext(ctx context.Context, r *http.Request, service *goa.Service) (*ListFactionContext, error)
NewListFactionContext parses the incoming request URL and body, performs validations and creates the context used by the faction controller list action.
func (*ListFactionContext) InternalServerError ¶
func (ctx *ListFactionContext) InternalServerError() error
InternalServerError sends a HTTP response with status code 500.
func (*ListFactionContext) NotFound ¶
func (ctx *ListFactionContext) NotFound() error
NotFound sends a HTTP response with status code 404.
func (*ListFactionContext) NotModified ¶ added in v0.5.6
func (ctx *ListFactionContext) NotModified() error
NotModified sends a HTTP response with status code 304.
func (*ListFactionContext) OK ¶
func (ctx *ListFactionContext) OK(r GwentapiFactionCollection) error
OK sends a HTTP response with status code 200.
func (*ListFactionContext) OKLink ¶
func (ctx *ListFactionContext) OKLink(r GwentapiFactionLinkCollection) error
OKLink sends a HTTP response with status code 200.
type ListGroupContext ¶
type ListGroupContext struct { context.Context *goa.ResponseData *goa.RequestData IfModifiedSince *string }
ListGroupContext provides the group list action context.
func NewListGroupContext ¶
func NewListGroupContext(ctx context.Context, r *http.Request, service *goa.Service) (*ListGroupContext, error)
NewListGroupContext parses the incoming request URL and body, performs validations and creates the context used by the group controller list action.
func (*ListGroupContext) InternalServerError ¶
func (ctx *ListGroupContext) InternalServerError() error
InternalServerError sends a HTTP response with status code 500.
func (*ListGroupContext) NotFound ¶
func (ctx *ListGroupContext) NotFound() error
NotFound sends a HTTP response with status code 404.
func (*ListGroupContext) NotModified ¶ added in v0.5.6
func (ctx *ListGroupContext) NotModified() error
NotModified sends a HTTP response with status code 304.
func (*ListGroupContext) OK ¶
func (ctx *ListGroupContext) OK(r GwentapiGroupCollection) error
OK sends a HTTP response with status code 200.
func (*ListGroupContext) OKLink ¶
func (ctx *ListGroupContext) OKLink(r GwentapiGroupLinkCollection) error
OKLink sends a HTTP response with status code 200.
type ListRarityContext ¶
type ListRarityContext struct { context.Context *goa.ResponseData *goa.RequestData IfModifiedSince *string }
ListRarityContext provides the rarity list action context.
func NewListRarityContext ¶
func NewListRarityContext(ctx context.Context, r *http.Request, service *goa.Service) (*ListRarityContext, error)
NewListRarityContext parses the incoming request URL and body, performs validations and creates the context used by the rarity controller list action.
func (*ListRarityContext) InternalServerError ¶
func (ctx *ListRarityContext) InternalServerError() error
InternalServerError sends a HTTP response with status code 500.
func (*ListRarityContext) NotFound ¶
func (ctx *ListRarityContext) NotFound() error
NotFound sends a HTTP response with status code 404.
func (*ListRarityContext) NotModified ¶ added in v0.5.6
func (ctx *ListRarityContext) NotModified() error
NotModified sends a HTTP response with status code 304.
func (*ListRarityContext) OK ¶
func (ctx *ListRarityContext) OK(r GwentapiRarityCollection) error
OK sends a HTTP response with status code 200.
func (*ListRarityContext) OKLink ¶
func (ctx *ListRarityContext) OKLink(r GwentapiRarityLinkCollection) error
OKLink sends a HTTP response with status code 200.
type RarityController ¶
type RarityController interface { goa.Muxer List(*ListRarityContext) error Show(*ShowRarityContext) error }
RarityController is the controller interface for the Rarity actions.
type ShowCardContext ¶
type ShowCardContext struct { context.Context *goa.ResponseData *goa.RequestData IfModifiedSince *string CardID string Lang string }
ShowCardContext provides the card show action context.
func NewShowCardContext ¶
func NewShowCardContext(ctx context.Context, r *http.Request, service *goa.Service) (*ShowCardContext, error)
NewShowCardContext parses the incoming request URL and body, performs validations and creates the context used by the card controller show action.
func (*ShowCardContext) InternalServerError ¶
func (ctx *ShowCardContext) InternalServerError() error
InternalServerError sends a HTTP response with status code 500.
func (*ShowCardContext) NotFound ¶
func (ctx *ShowCardContext) NotFound() error
NotFound sends a HTTP response with status code 404.
func (*ShowCardContext) NotModified ¶ added in v0.5.6
func (ctx *ShowCardContext) NotModified() error
NotModified sends a HTTP response with status code 304.
func (*ShowCardContext) OK ¶
func (ctx *ShowCardContext) OK(r *GwentapiCard) error
OK sends a HTTP response with status code 200.
func (*ShowCardContext) OKLink ¶
func (ctx *ShowCardContext) OKLink(r *GwentapiCardLink) error
OKLink sends a HTTP response with status code 200.
type ShowCategoryContext ¶
type ShowCategoryContext struct { context.Context *goa.ResponseData *goa.RequestData IfModifiedSince *string CategoryID string }
ShowCategoryContext provides the category show action context.
func NewShowCategoryContext ¶
func NewShowCategoryContext(ctx context.Context, r *http.Request, service *goa.Service) (*ShowCategoryContext, error)
NewShowCategoryContext parses the incoming request URL and body, performs validations and creates the context used by the category controller show action.
func (*ShowCategoryContext) InternalServerError ¶
func (ctx *ShowCategoryContext) InternalServerError() error
InternalServerError sends a HTTP response with status code 500.
func (*ShowCategoryContext) NotFound ¶
func (ctx *ShowCategoryContext) NotFound() error
NotFound sends a HTTP response with status code 404.
func (*ShowCategoryContext) NotModified ¶ added in v0.5.6
func (ctx *ShowCategoryContext) NotModified() error
NotModified sends a HTTP response with status code 304.
func (*ShowCategoryContext) OK ¶
func (ctx *ShowCategoryContext) OK(r *GwentapiCategory) error
OK sends a HTTP response with status code 200.
func (*ShowCategoryContext) OKLink ¶
func (ctx *ShowCategoryContext) OKLink(r *GwentapiCategoryLink) error
OKLink sends a HTTP response with status code 200.
type ShowFactionContext ¶
type ShowFactionContext struct { context.Context *goa.ResponseData *goa.RequestData IfModifiedSince *string FactionID string }
ShowFactionContext provides the faction show action context.
func NewShowFactionContext ¶
func NewShowFactionContext(ctx context.Context, r *http.Request, service *goa.Service) (*ShowFactionContext, error)
NewShowFactionContext parses the incoming request URL and body, performs validations and creates the context used by the faction controller show action.
func (*ShowFactionContext) InternalServerError ¶
func (ctx *ShowFactionContext) InternalServerError() error
InternalServerError sends a HTTP response with status code 500.
func (*ShowFactionContext) NotFound ¶
func (ctx *ShowFactionContext) NotFound() error
NotFound sends a HTTP response with status code 404.
func (*ShowFactionContext) NotModified ¶ added in v0.5.6
func (ctx *ShowFactionContext) NotModified() error
NotModified sends a HTTP response with status code 304.
func (*ShowFactionContext) OK ¶
func (ctx *ShowFactionContext) OK(r *GwentapiFaction) error
OK sends a HTTP response with status code 200.
func (*ShowFactionContext) OKLink ¶
func (ctx *ShowFactionContext) OKLink(r *GwentapiFactionLink) error
OKLink sends a HTTP response with status code 200.
type ShowGroupContext ¶
type ShowGroupContext struct { context.Context *goa.ResponseData *goa.RequestData IfModifiedSince *string GroupID string }
ShowGroupContext provides the group show action context.
func NewShowGroupContext ¶
func NewShowGroupContext(ctx context.Context, r *http.Request, service *goa.Service) (*ShowGroupContext, error)
NewShowGroupContext parses the incoming request URL and body, performs validations and creates the context used by the group controller show action.
func (*ShowGroupContext) InternalServerError ¶
func (ctx *ShowGroupContext) InternalServerError() error
InternalServerError sends a HTTP response with status code 500.
func (*ShowGroupContext) NotFound ¶
func (ctx *ShowGroupContext) NotFound() error
NotFound sends a HTTP response with status code 404.
func (*ShowGroupContext) NotModified ¶ added in v0.5.6
func (ctx *ShowGroupContext) NotModified() error
NotModified sends a HTTP response with status code 304.
func (*ShowGroupContext) OK ¶
func (ctx *ShowGroupContext) OK(r *GwentapiGroup) error
OK sends a HTTP response with status code 200.
func (*ShowGroupContext) OKLink ¶
func (ctx *ShowGroupContext) OKLink(r *GwentapiGroupLink) error
OKLink sends a HTTP response with status code 200.
type ShowIndexContext ¶
type ShowIndexContext struct { context.Context *goa.ResponseData *goa.RequestData }
ShowIndexContext provides the index show action context.
func NewShowIndexContext ¶
func NewShowIndexContext(ctx context.Context, r *http.Request, service *goa.Service) (*ShowIndexContext, error)
NewShowIndexContext parses the incoming request URL and body, performs validations and creates the context used by the index controller show action.
func (*ShowIndexContext) NotFound ¶
func (ctx *ShowIndexContext) NotFound() error
NotFound sends a HTTP response with status code 404.
func (*ShowIndexContext) OK ¶
func (ctx *ShowIndexContext) OK(r *GwentapiResource) error
OK sends a HTTP response with status code 200.
type ShowRarityContext ¶
type ShowRarityContext struct { context.Context *goa.ResponseData *goa.RequestData IfModifiedSince *string RarityID string }
ShowRarityContext provides the rarity show action context.
func NewShowRarityContext ¶
func NewShowRarityContext(ctx context.Context, r *http.Request, service *goa.Service) (*ShowRarityContext, error)
NewShowRarityContext parses the incoming request URL and body, performs validations and creates the context used by the rarity controller show action.
func (*ShowRarityContext) InternalServerError ¶
func (ctx *ShowRarityContext) InternalServerError() error
InternalServerError sends a HTTP response with status code 500.
func (*ShowRarityContext) NotFound ¶
func (ctx *ShowRarityContext) NotFound() error
NotFound sends a HTTP response with status code 404.
func (*ShowRarityContext) NotModified ¶ added in v0.5.6
func (ctx *ShowRarityContext) NotModified() error
NotModified sends a HTTP response with status code 304.
func (*ShowRarityContext) OK ¶
func (ctx *ShowRarityContext) OK(r *GwentapiRarity) error
OK sends a HTTP response with status code 200.
func (*ShowRarityContext) OKLink ¶
func (ctx *ShowRarityContext) OKLink(r *GwentapiRarityLink) error
OKLink sends a HTTP response with status code 200.