Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorInternal = centrifuge.ErrorInternal ErrorPermissionDenied = centrifuge.ErrorPermissionDenied ErrorMethodNotFound = centrifuge.ErrorMethodNotFound ErrorAlreadySubscribed = centrifuge.ErrorAlreadySubscribed ErrorBadRequest = centrifuge.ErrorBadRequest ErrorUsernameIsRequired = ¢rifuge.Error{401, "username is required", false} ErrorEmailIsRequired = ¢rifuge.Error{402, "email is required", false} ErrorPasswordIsRequired = ¢rifuge.Error{403, "password is required", false} ErrorRepeatedPasswordIsRequired = ¢rifuge.Error{404, "repeated_password is required", false} ErrorInvalidUsernameLength = ¢rifuge.Error{405, "invalid username length", false} ErrorInvalidEmail = ¢rifuge.Error{406, "invalid email", false} ErrorInvalidEmailLength = ¢rifuge.Error{407, "invalid email length", false} ErrorInvalidPasswordLength = ¢rifuge.Error{408, "invalid password length", false} ErrorInvalidPasswordCharacter = ¢rifuge.Error{409, "invalid password character", false} ErrorMissingLetterInPassword = ¢rifuge.Error{410, "missing letter character", false} ErrorMissingDigitInPassword = ¢rifuge.Error{411, "missing digit character", false} ErrorPasswordsNotEqual = ¢rifuge.Error{412, "passwords are not equal", false} ErrorUsernameIsTaken = ¢rifuge.Error{413, "username is already taken", false} ErrorEmailIsTaken = ¢rifuge.Error{414, "email is already taken", false} ErrorInvalidCredentials = ¢rifuge.Error{415, "invalid credentials", false} ErrorUserNotFound = ¢rifuge.Error{416, "user not found", false} ErrorCallingYourselfForGame = ¢rifuge.Error{417, "can't call yourself for a game", false} ErrorInvalidUsernameCharacter = ¢rifuge.Error{418, "invalid username character", false} ErrorInviterAlreadyPlaying = ¢rifuge.Error{419, "inviter already playing a game", false} ErrorOpponentAlreadyPlaying = ¢rifuge.Error{420, "opponent already playing a game", false} ErrorGameNotFound = ¢rifuge.Error{421, "game not found", false} ErrorGameIsNotActive = ¢rifuge.Error{422, "game is not active", false} ErrFirstMoveShouldBeBlack = ¢rifuge.Error{423, "first move should be made by black user", false} ErrFirstMoveShouldBeInCenter = ¢rifuge.Error{424, "first move should be in board's center", false} ErrCoordinatesOutside = ¢rifuge.Error{425, "coordinates outside the board", false} ErrFieldAlreadyTaken = ¢rifuge.Error{426, "field is already taken", false} ErrInvalidTurn = ¢rifuge.Error{427, "invalid turn", false} ErrRow6IsBannedForBlack = ¢rifuge.Error{428, "black player cannot make row of length 6 and greater", false} ErrInvalidForkForBlack = ¢rifuge.Error{429, "black can make only 3x4 forks", false} )
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
Error *centrifuge.Error `json:"error"`
}
Error is the JSON-object that server will return when an error occurs.
Click to show internal directories.
Click to hide internal directories.