-
-
Notifications
You must be signed in to change notification settings - Fork 676
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(runtime): support __websocket__ builtin function (#832)
- Loading branch information
Showing
20 changed files
with
80 additions
and
243 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,28 +1,14 @@ | ||
import { deepFreeze } from "./support/utils" | ||
|
||
/** | ||
* Constants collection | ||
* Collection names | ||
*/ | ||
export const Constants = { | ||
/** | ||
* collection name of cloud functions | ||
*/ | ||
function_collection: '__functions__', | ||
export const CLOUD_FUNCTION_COLLECTION = '__functions__' | ||
export const POLICY_COLLECTION = '__policies__' | ||
export const FUNCTION_LOG_COLLECTION = '__function_logs__' | ||
export const CONFIG_COLLECTION = '__config__' | ||
|
||
/** | ||
* collection name of policy which used for authenticating `client-access-database` requests | ||
*/ | ||
policy_collection: '__policies__', | ||
|
||
/** | ||
* collection name of cloud functions' log | ||
*/ | ||
function_log_collection: "__function_logs__", | ||
|
||
/** | ||
* collection name of application configuration | ||
*/ | ||
config_collection: '__config__' | ||
} | ||
|
||
deepFreeze(Constants) | ||
export const WEBSOCKET_FUNCTION_NAME = '__websocket__' | ||
export const INTERCEPTOR_FUNCTION_NAME = '__interceptor__' | ||
export const DEFAULT_FUNCTION_NAME = '__default__' | ||
export const INIT_FUNCTION_NAME = '__init__' |
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
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
Oops, something went wrong.