user

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: Unlicense Imports: 5 Imported by: 3

Documentation

Index

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"
	// 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) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAuth0Id added in v1.2.0

func (x *User) GetAuth0Id() string

func (*User) GetEmail added in v1.2.0

func (x *User) GetEmail() string

func (*User) GetOwnedCards added in v1.2.0

func (x *User) GetOwnedCards() []string

func (*User) GetOwnedDecks added in v1.2.0

func (x *User) GetOwnedDecks() []string

func (*User) GetOwnedSets added in v1.2.0

func (x *User) GetOwnedSets() []string

func (*User) GetUsername added in v1.2.0

func (x *User) GetUsername() string

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

func (*User) Reset added in v1.2.0

func (x *User) Reset()

func (*User) String added in v1.2.0

func (x *User) String() string

Jump to

Keyboard shortcuts

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