Documentation
¶
Index ¶
- Variables
- type Deck
- func (*Deck) Descriptor() ([]byte, []int)deprecated
- func (x *Deck) GetCode() string
- func (x *Deck) GetContentIds() *DeckContentIds
- func (x *Deck) GetContents() *DeckContents
- func (x *Deck) GetMtgjsonApiMeta() *meta.MTGJSONAPIMeta
- func (x *Deck) GetName() string
- func (x *Deck) GetReleaseDate() string
- func (x *Deck) GetType() string
- func (*Deck) ProtoMessage()
- func (x *Deck) ProtoReflect() protoreflect.Message
- func (x *Deck) Reset()
- func (x *Deck) String() string
- type DeckContentIds
- func (*DeckContentIds) Descriptor() ([]byte, []int)deprecated
- func (x *DeckContentIds) GetCommander() []string
- func (x *DeckContentIds) GetMainBoard() []string
- func (x *DeckContentIds) GetSideBoard() []string
- func (*DeckContentIds) ProtoMessage()
- func (x *DeckContentIds) ProtoReflect() protoreflect.Message
- func (x *DeckContentIds) Reset()
- func (x *DeckContentIds) String() string
- type DeckContents
- func (*DeckContents) Descriptor() ([]byte, []int)deprecated
- func (x *DeckContents) GetCommander() []*card.CardSet
- func (x *DeckContents) GetMainBoard() []*card.CardSet
- func (x *DeckContents) GetSideBoard() []*card.CardSet
- func (*DeckContents) ProtoMessage()
- func (x *DeckContents) ProtoReflect() protoreflect.Message
- func (x *DeckContents) Reset()
- func (x *DeckContents) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_deck_deck_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Deck ¶
type Deck struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" bson:"name"` // @gotags: bson:"name"
Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty" bson:"code"` // @gotags: bson:"code"
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty" bson:"type"` // @gotags: bson:"type"
ReleaseDate string `protobuf:"bytes,4,opt,name=releaseDate,proto3" json:"releaseDate,omitempty" bson:"releaseDate"` // @gotags: bson:"releaseDate"
ContentIds *DeckContentIds `protobuf:"bytes,5,opt,name=contentIds,proto3" json:"contentIds,omitempty" bson:"contentIds"` // @gotags: bson:"contentIds"
Contents *DeckContents `protobuf:"bytes,6,opt,name=contents,proto3" json:"contents,omitempty" bson:"contents"` // @gotags: bson:"contents"
MtgjsonApiMeta *meta.MTGJSONAPIMeta `protobuf:"bytes,7,opt,name=mtgjsonApiMeta,proto3" json:"mtgjsonApiMeta,omitempty" bson:"mtgjsonApiMeta"` // @gotags: bson:"mtgjsonApiMeta"
// contains filtered or unexported fields
}
Deck - Represents an MTGJSON deck
See here for more info: https://mtgjson.com/data-models/deck
This model has been changed slightly from the original model to seperate out lists for both the card ids and for cards themselves. This way we can store just the ID's in the database and fill the contents field before it gets returned to the user
func (*Deck) Descriptor
deprecated
added in
v1.2.0
func (*Deck) GetContentIds ¶ added in v1.2.0
func (x *Deck) GetContentIds() *DeckContentIds
func (*Deck) GetContents ¶ added in v1.2.0
func (x *Deck) GetContents() *DeckContents
func (*Deck) GetMtgjsonApiMeta ¶ added in v1.2.0
func (x *Deck) GetMtgjsonApiMeta() *meta.MTGJSONAPIMeta
func (*Deck) GetReleaseDate ¶ added in v1.2.0
func (*Deck) ProtoMessage ¶ added in v1.2.0
func (*Deck) ProtoMessage()
func (*Deck) ProtoReflect ¶ added in v1.2.0
func (x *Deck) ProtoReflect() protoreflect.Message
type DeckContentIds ¶ added in v1.2.0
type DeckContentIds struct {
MainBoard []string `protobuf:"bytes,1,rep,name=mainBoard,proto3" json:"mainBoard,omitempty" bson:"mainBoard"` // @gotags: bson:"mainBoard"
SideBoard []string `protobuf:"bytes,2,rep,name=sideBoard,proto3" json:"sideBoard,omitempty" bson:"sideBoard"` // @gotags: bson:"sideBoard"
Commander []string `protobuf:"bytes,3,rep,name=commander,proto3" json:"commander,omitempty" bson:"commander"` // @gotags: bson:"commander"
// contains filtered or unexported fields
}
DeckContentIds - Represents the MTGJSON v4 ID's that make up a deck
func (*DeckContentIds) Descriptor
deprecated
added in
v1.2.0
func (*DeckContentIds) Descriptor() ([]byte, []int)
Deprecated: Use DeckContentIds.ProtoReflect.Descriptor instead.
func (*DeckContentIds) GetCommander ¶ added in v1.2.0
func (x *DeckContentIds) GetCommander() []string
func (*DeckContentIds) GetMainBoard ¶ added in v1.2.0
func (x *DeckContentIds) GetMainBoard() []string
func (*DeckContentIds) GetSideBoard ¶ added in v1.2.0
func (x *DeckContentIds) GetSideBoard() []string
func (*DeckContentIds) ProtoMessage ¶ added in v1.2.0
func (*DeckContentIds) ProtoMessage()
func (*DeckContentIds) ProtoReflect ¶ added in v1.2.0
func (x *DeckContentIds) ProtoReflect() protoreflect.Message
func (*DeckContentIds) Reset ¶ added in v1.2.0
func (x *DeckContentIds) Reset()
func (*DeckContentIds) String ¶ added in v1.2.0
func (x *DeckContentIds) String() string
type DeckContents ¶ added in v1.0.3
type DeckContents struct {
MainBoard []*card.CardSet `protobuf:"bytes,1,rep,name=mainBoard,proto3" json:"mainBoard,omitempty" bson:"mainBoard"` // @gotags: bson:"mainBoard"
SideBoard []*card.CardSet `protobuf:"bytes,2,rep,name=sideBoard,proto3" json:"sideBoard,omitempty" bson:"sideBoard"` // @gotags: bson:"sideBoard"
Commander []*card.CardSet `protobuf:"bytes,3,rep,name=commander,proto3" json:"commander,omitempty" bson:"commander"` // @gotags: bson:"commander"
// contains filtered or unexported fields
}
DeckContents - Represents the MTGJSON Cards of the decks and its boards
func (*DeckContents) Descriptor
deprecated
added in
v1.2.0
func (*DeckContents) Descriptor() ([]byte, []int)
Deprecated: Use DeckContents.ProtoReflect.Descriptor instead.
func (*DeckContents) GetCommander ¶ added in v1.2.0
func (x *DeckContents) GetCommander() []*card.CardSet
func (*DeckContents) GetMainBoard ¶ added in v1.2.0
func (x *DeckContents) GetMainBoard() []*card.CardSet
func (*DeckContents) GetSideBoard ¶ added in v1.2.0
func (x *DeckContents) GetSideBoard() []*card.CardSet
func (*DeckContents) ProtoMessage ¶ added in v1.2.0
func (*DeckContents) ProtoMessage()
func (*DeckContents) ProtoReflect ¶ added in v1.2.0
func (x *DeckContents) ProtoReflect() protoreflect.Message
func (*DeckContents) Reset ¶ added in v1.2.0
func (x *DeckContents) Reset()
func (*DeckContents) String ¶ added in v1.2.0
func (x *DeckContents) String() string
Click to show internal directories.
Click to hide internal directories.