Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrBoardNotExist = errors.New("deck: Operation failed. Requested board does not exist")
var ErrCardAlreadyExist = errors.New("card: Operation failed. Card already exists")
var ErrCardDeleteFailed = errors.New("card: Operation failed. Failed to remove card")
var ErrCardMissingId = errors.New("card: Card is missing a name and/or a mtgjsonV4Id")
var ErrCardUpdateFailed = errors.New("card: Operation failed. Failed to update card with new metadata")
var ErrDeckAlreadyExists = errors.New("deck: Operation Failed. Deck already exists")
var ErrDeckDeleteFailed = errors.New("deck: Operation failed. Issue while deleting deck")
var ErrDeckMissingContentIds = errors.New("deck: The contentId's field of the deck object is nil")
var ErrDeckMissingId = errors.New("deck: Operation Failed.. Deck is missing a name and/or a deck code")
var ErrDeckNoCards = errors.New("deck: Could not update deck. No cards were passed to update the deck with")
var ErrDeckUpdateFailed = errors.New("deck: Operation failed. Failed to update deck")
var ErrFailedToCreateToken = errors.New("token: Failed to create user access token")
var ErrFailedToGenerateKey = errors.New("userCredentials: Failed to generate AES key for user credentials")
var ErrFailedToLoginUser = errors.New("user: Failed to login user with Auth0")
var ErrFailedToRegisterUser = errors.New("user: Failed to register user with Auth0")
var ErrInvalidCards = errors.New("card: Could not update deck or set. Some cards are invalid or do not exist")
var ErrInvalidEmail = errors.New("user: Operation failed. Email is invalid")
var ErrInvalidObjectStructure = errors.New("request: Failed to bind object to request. Object structure may be incorrect")
Generic Issues - Holds all errors that are generic and dont relate to a specific card object
var ErrInvalidPasswordLength = errors.New("user: Failed to create user. Password must be at least 12 characters long")
var ErrInvalidPermissions = errors.New("user: You do not have the permissions to access this resource")
var ErrInvalidUUID = errors.New("card: Operation failed. Invalid v5 uuid")
var ErrMetaApiMustBeNull = errors.New("meta: The mtgjsonMetaApi field must be null. This will be created automatically")
var ErrMissingMetaApi = errors.New("meta: Object is missing the mtgjsonMetaApi field. This is usually due to creating the object manually")
Meta Errors - Holds all errors that could arise relating the mtgjsonApiMeta object
var ErrNoCard = errors.New("card: failed to find card with specified uuid")
Card Errors - Holds all errors that could arise from fetching or inserting cards
var ErrNoCards = errors.New("card: No card found on index operation")
var ErrNoCred = errors.New("userCredentials: Failed to find user credentials with the specified credentialId")
Credential Errors - Holds all errors that could arise from fetching or creating new user credentials
var ErrNoDeck = errors.New("deck: Failed to find deck with the specified code")
Deck Errors - Holds all errors that could arise from fetching or inserting decks
var ErrNoDecks = errors.New("deck: No decks found on index operation")
var ErrNoSet = errors.New("set: failed to find set with the specified code")
Set Errors - Holds all errors that could arise from fetching or creating sets
var ErrNoSets = errors.New("set: No sets found on index operation")
var ErrNoUser = errors.New("user: Failed to find user with the specified username")
User Errors - Holds all errors that could arise from fetching or creating new users
var ErrSetAlreadyExists = errors.New("set: Operation failed. A set already exists under this set code")
var ErrSetDeleteFailed = errors.New("set: Operation failed. Failed to remove cards from set")
var ErrSetMissingContentIds = errors.New("set: The contentId's field of the set object is nil")
var ErrSetMissingId = errors.New("set: Operation failed. Set is missing either a name or a set code")
var ErrSetNoCards = errors.New("set: Could not update set. No cards were passed to update the set with")
var ErrSetUpdateFailed = errors.New("set: Operation failed. Failed to update set with new card(s)")
var ErrTokenInvalid = errors.New("user: Access Token is not valid")
Token Errors - Holds all errors that could arise from fetching or creating tokens
var ErrUserAlreadyExist = errors.New("user: Operation failed. A user already exists with this username")
var ErrUserDeleteFailed = errors.New("user: Failed to delete user")
var ErrUserMissingId = errors.New("user: Operation failed. User model is missing Id")
var ErrUserUpdateFailed = errors.New("user: Failed to update user")
Functions ¶
This section is empty.
Types ¶
This section is empty.