Documentation ¶
Index ¶
- type AuthenticationFailed
- type AuthenticationProviderNotSupported
- type DocumentNotFoundError
- type DonationCooldownViolatedError
- type DonationRequestCooldownViolatedError
- type ItemNotFoundInGameError
- type LimitOfItemsInDonationRequestReachedError
- type LimitOfItemsPerPlayerInDonationRequestReachedError
- type ParameterIsRequiredError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationFailed ¶
type AuthenticationFailed struct {
Provider, UserID, Token string
}
AuthenticationFailed happens when an authentication provider does not recognize the access token
func NewAuthenticationFailed ¶
func NewAuthenticationFailed(provider, userID, token string) *AuthenticationFailed
NewAuthenticationFailed creates a new error
type AuthenticationProviderNotSupported ¶
type AuthenticationProviderNotSupported struct {
Provider string
}
AuthenticationProviderNotSupported happens when a query should return a document but it's not found
func NewAuthenticationProviderNotSupported ¶
func NewAuthenticationProviderNotSupported(provider string) *AuthenticationProviderNotSupported
NewAuthenticationProviderNotSupported creates a new error
func (AuthenticationProviderNotSupported) Error ¶
func (err AuthenticationProviderNotSupported) Error() string
Error string
type DocumentNotFoundError ¶
DocumentNotFoundError happens when a query should return a document but it's not found
func NewDocumentNotFoundError ¶
func NewDocumentNotFoundError(collection string, id string) *DocumentNotFoundError
NewDocumentNotFoundError creates a new error
type DonationCooldownViolatedError ¶
type DonationCooldownViolatedError struct { GameID string PlayerID string TotalWeightForPeriod int MaxWeightForPerior int }
DonationCooldownViolatedError happens when a donation request is created in less than <cooldown> hours after last one
func (DonationCooldownViolatedError) Error ¶
func (err DonationCooldownViolatedError) Error() string
Error string
type DonationRequestCooldownViolatedError ¶
DonationRequestCooldownViolatedError happens when a donation request is created in less than <cooldown> hours after last one
func (DonationRequestCooldownViolatedError) Error ¶
func (err DonationRequestCooldownViolatedError) Error() string
Error string
type ItemNotFoundInGameError ¶
ItemNotFoundInGameError happens when a donation happens for an item that's not in the game
func (ItemNotFoundInGameError) Error ¶
func (err ItemNotFoundInGameError) Error() string
Error string
type LimitOfItemsInDonationRequestReachedError ¶
type LimitOfItemsInDonationRequestReachedError struct { GameID string DonationRequestID string ItemKey string Amount int }
LimitOfItemsInDonationRequestReachedError happens when a donation happens for an item that's not in the game
func (LimitOfItemsInDonationRequestReachedError) Error ¶
func (err LimitOfItemsInDonationRequestReachedError) Error() string
Error string
type LimitOfItemsPerPlayerInDonationRequestReachedError ¶
type LimitOfItemsPerPlayerInDonationRequestReachedError struct { GameID string DonationRequestID string ItemKey string Amount int Player string CurrentDonationCount int }
LimitOfItemsPerPlayerInDonationRequestReachedError happens when a donation happens for an item that's not in the game
func (LimitOfItemsPerPlayerInDonationRequestReachedError) Error ¶
func (err LimitOfItemsPerPlayerInDonationRequestReachedError) Error() string
Error string
type ParameterIsRequiredError ¶
ParameterIsRequiredError happens when a parameter for a given instance to be saved is required but is empty
func (ParameterIsRequiredError) Error ¶
func (err ParameterIsRequiredError) Error() string
Error string