Documentation
¶
Index ¶
- Variables
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAuth0Id() string
- func (x *User) GetEmail() string
- func (x *User) GetOwnedCards() []string
- func (x *User) GetOwnedDecks() []string
- func (x *User) GetOwnedSets() []string
- func (x *User) GetStats() *UserStatistics
- func (x *User) GetUsername() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserStatistics
- func (*UserStatistics) Descriptor() ([]byte, []int)deprecated
- func (x *UserStatistics) GetLevel() int64
- func (x *UserStatistics) GetPrestige() int64
- func (x *UserStatistics) GetTotalCardsOwned() int64
- func (x *UserStatistics) GetTotalDecksOwned() int64
- func (x *UserStatistics) GetTotalGamesLost() int64
- func (x *UserStatistics) GetTotalGamesPlayed() int64
- func (x *UserStatistics) GetTotalGamesWon() int64
- func (x *UserStatistics) GetTotalSetsOwned() int64
- func (x *UserStatistics) GetWinLossRatio() float32
- func (x *UserStatistics) GetXpLeft() int64
- func (*UserStatistics) ProtoMessage()
- func (x *UserStatistics) ProtoReflect() protoreflect.Message
- func (x *UserStatistics) Reset()
- func (x *UserStatistics) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_user_user_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct {
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty" bson:"username"` // @gotags: bson:"username"
Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty" bson:"email"` // @gotags: bson:"email"
Auth0Id string `protobuf:"bytes,3,opt,name=auth0Id,proto3" json:"auth0Id,omitempty" bson:"auth0Id"` // @gotags: bson:"auth0Id"
OwnedDecks []string `protobuf:"bytes,4,rep,name=ownedDecks,proto3" json:"ownedDecks,omitempty" bson:"ownedDecks"` // @gotags: bson:"ownedDecks"
OwnedCards []string `protobuf:"bytes,5,rep,name=ownedCards,proto3" json:"ownedCards,omitempty" bson:"ownedCards"` // @gotags: bson:"ownedCards"
OwnedSets []string `protobuf:"bytes,6,rep,name=ownedSets,proto3" json:"ownedSets,omitempty" bson:"ownedSets"` // @gotags: bson:"ownedSets"
Stats *UserStatistics `protobuf:"bytes,7,opt,name=stats,proto3" json:"stats,omitempty" bson:"stats"` // @gotags: bson:"stats"
// contains filtered or unexported fields
}
User - Represents an MTGJSON API user. The fields: decks, cards, and sets are a list of MTGJSON V4 UUID's that represent the objects that they own
func (*User) Descriptor
deprecated
added in
v1.2.0
func (*User) GetAuth0Id ¶ added in v1.2.0
func (*User) GetOwnedCards ¶ added in v1.2.0
func (*User) GetOwnedDecks ¶ added in v1.2.0
func (*User) GetOwnedSets ¶ added in v1.2.0
func (*User) GetStats ¶ added in v1.2.0
func (x *User) GetStats() *UserStatistics
func (*User) GetUsername ¶ added in v1.2.0
func (*User) ProtoMessage ¶ added in v1.2.0
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶ added in v1.2.0
func (x *User) ProtoReflect() protoreflect.Message
type UserStatistics ¶ added in v1.2.0
type UserStatistics struct {
Level int64 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty" bson:"level"` // @gotags: bson:"level"
Prestige int64 `protobuf:"varint,2,opt,name=prestige,proto3" json:"prestige,omitempty" bson:"prestige"` // @gotags: bson:"prestige"
XpLeft int64 `protobuf:"varint,3,opt,name=xpLeft,proto3" json:"xpLeft,omitempty" bson:"xpLeft"` // @gotags: bson:"xpLeft"
TotalGamesPlayed int64 `protobuf:"varint,4,opt,name=totalGamesPlayed,proto3" json:"totalGamesPlayed,omitempty" bson:"totalGamesPlayed"` // @gotags: bson:"totalGamesPlayed"
TotalGamesWon int64 `protobuf:"varint,5,opt,name=totalGamesWon,proto3" json:"totalGamesWon,omitempty" bson:"totalGamesWon"` // @gotags: bson:"totalGamesWon"
TotalGamesLost int64 `protobuf:"varint,6,opt,name=totalGamesLost,proto3" json:"totalGamesLost,omitempty" bson:"totalGamesLost"` // @gotags: bson:"totalGamesLost"
WinLossRatio float32 `protobuf:"fixed32,7,opt,name=winLossRatio,proto3" json:"winLossRatio,omitempty" bson:"winLossRatio"` // @gotags: bson:"winLossRatio"
TotalDecksOwned int64 `protobuf:"varint,8,opt,name=totalDecksOwned,proto3" json:"totalDecksOwned,omitempty" bson:"totalDecksOwned"` // @gotags: bson:"totalDecksOwned"
TotalSetsOwned int64 `protobuf:"varint,9,opt,name=totalSetsOwned,proto3" json:"totalSetsOwned,omitempty" bson:"totalSetsOwned"` // @gotags: bson:"totalSetsOwned"
TotalCardsOwned int64 `protobuf:"varint,10,opt,name=totalCardsOwned,proto3" json:"totalCardsOwned,omitempty" bson:"totalCardsOwned"` // @gotags: bson:"totalCardsOwned"
// contains filtered or unexported fields
}
UserStatistics - Represents the users MTGJSON API stats and there status for Arcane
func (*UserStatistics) Descriptor
deprecated
added in
v1.2.0
func (*UserStatistics) Descriptor() ([]byte, []int)
Deprecated: Use UserStatistics.ProtoReflect.Descriptor instead.
func (*UserStatistics) GetLevel ¶ added in v1.2.0
func (x *UserStatistics) GetLevel() int64
func (*UserStatistics) GetPrestige ¶ added in v1.2.0
func (x *UserStatistics) GetPrestige() int64
func (*UserStatistics) GetTotalCardsOwned ¶ added in v1.2.0
func (x *UserStatistics) GetTotalCardsOwned() int64
func (*UserStatistics) GetTotalDecksOwned ¶ added in v1.2.0
func (x *UserStatistics) GetTotalDecksOwned() int64
func (*UserStatistics) GetTotalGamesLost ¶ added in v1.2.0
func (x *UserStatistics) GetTotalGamesLost() int64
func (*UserStatistics) GetTotalGamesPlayed ¶ added in v1.2.0
func (x *UserStatistics) GetTotalGamesPlayed() int64
func (*UserStatistics) GetTotalGamesWon ¶ added in v1.2.0
func (x *UserStatistics) GetTotalGamesWon() int64
func (*UserStatistics) GetTotalSetsOwned ¶ added in v1.2.0
func (x *UserStatistics) GetTotalSetsOwned() int64
func (*UserStatistics) GetWinLossRatio ¶ added in v1.2.0
func (x *UserStatistics) GetWinLossRatio() float32
func (*UserStatistics) GetXpLeft ¶ added in v1.2.0
func (x *UserStatistics) GetXpLeft() int64
func (*UserStatistics) ProtoMessage ¶ added in v1.2.0
func (*UserStatistics) ProtoMessage()
func (*UserStatistics) ProtoReflect ¶ added in v1.2.0
func (x *UserStatistics) ProtoReflect() protoreflect.Message
func (*UserStatistics) Reset ¶ added in v1.2.0
func (x *UserStatistics) Reset()
func (*UserStatistics) String ¶ added in v1.2.0
func (x *UserStatistics) String() string
Click to show internal directories.
Click to hide internal directories.