This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
51 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright (c) 2018 Miguel Ángel Ortuño. | ||
* See the LICENSE file for more information. | ||
*/ | ||
|
||
package router | ||
|
||
import "github.com/pkg/errors" | ||
|
||
var ( | ||
// ErrNotExistingAccount will be returned by Route method | ||
// if destination user does not exist. | ||
ErrNotExistingAccount = errors.New("router: account does not exist") | ||
|
||
// ErrResourceNotFound will be returned by Route method | ||
// if destination resource does not match any of user's available resources. | ||
ErrResourceNotFound = errors.New("router: resource not found") | ||
|
||
// ErrNotAuthenticated will be returned by Route method if | ||
// destination user is not available at this moment. | ||
ErrNotAuthenticated = errors.New("router: user not authenticated") | ||
|
||
// ErrBlockedJID will be returned by Route method if | ||
// destination jid matches any of the user's blocked jid. | ||
ErrBlockedJID = errors.New("router: destination jid is blocked") | ||
|
||
// ErrFailedRemoteConnect will be returned by Route method if | ||
// couldn't establish a connection to the remote server. | ||
ErrFailedRemoteConnect = errors.New("router: failed remote connection") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters