deck

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: Unlicense Imports: 7 Imported by: 3

Documentation

Index

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"
	Contents       *DeckContentIds      `protobuf:"bytes,5,opt,name=contents,proto3" json:"contents,omitempty" bson:"contents"`                   // @gotags: bson:"contents"
	MtgjsonApiMeta *meta.MTGJSONAPIMeta `protobuf:"bytes,6,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) Descriptor() ([]byte, []int)

Deprecated: Use Deck.ProtoReflect.Descriptor instead.

func (*Deck) GetCode added in v1.2.0

func (x *Deck) GetCode() string

func (*Deck) GetContents added in v1.2.0

func (x *Deck) GetContents() *DeckContentIds

func (*Deck) GetMtgjsonApiMeta added in v1.2.0

func (x *Deck) GetMtgjsonApiMeta() *meta.MTGJSONAPIMeta

func (*Deck) GetName added in v1.2.0

func (x *Deck) GetName() string

func (*Deck) GetReleaseDate added in v1.2.0

func (x *Deck) GetReleaseDate() string

func (*Deck) GetType added in v1.2.0

func (x *Deck) GetType() string

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

func (*Deck) Reset added in v1.2.0

func (x *Deck) Reset()

func (*Deck) String added in v1.2.0

func (x *Deck) String() string

type DeckContentEntry added in v1.3.6

type DeckContentEntry struct {
	Quantity int64         `protobuf:"varint,1,opt,name=quantity,proto3" json:"quantity,omitempty" bson:"quantity"` // @gotags: bson:"quantity"
	Card     *card.CardSet `protobuf:"bytes,2,opt,name=card,proto3" json:"card,omitempty" bson:"card"`              // @gotags: bson:"card"
	// contains filtered or unexported fields
}

DeckContentEntry - Represents a single entry in the DeckContents structure

func (*DeckContentEntry) Descriptor deprecated added in v1.3.6

func (*DeckContentEntry) Descriptor() ([]byte, []int)

Deprecated: Use DeckContentEntry.ProtoReflect.Descriptor instead.

func (*DeckContentEntry) GetCard added in v1.3.6

func (x *DeckContentEntry) GetCard() *card.CardSet

func (*DeckContentEntry) GetQuantity added in v1.3.6

func (x *DeckContentEntry) GetQuantity() int64

func (*DeckContentEntry) ProtoMessage added in v1.3.6

func (*DeckContentEntry) ProtoMessage()

func (*DeckContentEntry) ProtoReflect added in v1.3.6

func (x *DeckContentEntry) ProtoReflect() protoreflect.Message

func (*DeckContentEntry) Reset added in v1.3.6

func (x *DeckContentEntry) Reset()

func (*DeckContentEntry) String added in v1.3.6

func (x *DeckContentEntry) String() string

type DeckContentIds added in v1.2.0

type DeckContentIds struct {
	MainBoard map[string]int64 `` // @gotags: bson:"mainBoard"
	/* 163-byte string literal not displayed */
	SideBoard map[string]int64 `` // @gotags: bson:"sideBoard"
	/* 163-byte string literal not displayed */
	Commander map[string]int64 `` // @gotags: bson:"commander"
	/* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

DeckContentIds - Represents the contents of a deck that are stored within Mongo

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() map[string]int64

func (*DeckContentIds) GetMainBoard added in v1.2.0

func (x *DeckContentIds) GetMainBoard() map[string]int64

func (*DeckContentIds) GetSideBoard added in v1.2.0

func (x *DeckContentIds) GetSideBoard() map[string]int64

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 map[string]*DeckContentEntry `` // @gotags: bson:"mainBoard"
	/* 162-byte string literal not displayed */
	SideBoard map[string]*DeckContentEntry `` // @gotags: bson:"sideBoard"
	/* 162-byte string literal not displayed */
	Commander map[string]*DeckContentEntry `` // @gotags: bson:"commander"
	/* 162-byte string literal not displayed */
	// contains filtered or unexported fields
}

DeckContents - Represents the contents of deck that are returned to the caller

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() map[string]*DeckContentEntry

func (*DeckContents) GetMainBoard added in v1.2.0

func (x *DeckContents) GetMainBoard() map[string]*DeckContentEntry

func (*DeckContents) GetSideBoard added in v1.2.0

func (x *DeckContents) GetSideBoard() map[string]*DeckContentEntry

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

Jump to

Keyboard shortcuts

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