import {Registry} from 'skygear-build/packages/skygear-core/lib/cloud/registry.js'
Registry
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
funcMap: {"op": *, "event": *, "hook": *, "timer": *} |
|
public |
handlers: {} |
|
public |
paramMap: {"op": *, "event": *, "handler": *, "hook": *, "timer": *, "provider": *} |
|
public |
providers: {} |
|
public |
staticAsset: {} |
Method Summary
Public Methods | ||
public |
funcList(): * |
|
public |
getEventFunctions(name: *): * |
|
public |
getFunc(kind: *, name: *): * |
|
public |
getHandler(name: *, method: *): * |
|
public |
getHookType(name: *): * |
|
public |
getProvider(name: *): * |
|
public |
registerAsset(path: *, func: *) |
|
public |
registerEvent(name: *, func: *) |
|
public |
registerHandler(name: *, func: *, options: *) |
|
public |
registerHook(name: *, func: *, options: *) |
|
public |
registerOp(name: *, func: *, options: *) |
|
public |
registerProvider(providerType: *, providerID: *, provider: *, options: *) |
|
public |
registerTimer(name: *, func: *, options: *) |
Public Constructors
public constructor() source
Public Members
public funcMap: {"op": *, "event": *, "hook": *, "timer": *} source
public handlers: {} source
public paramMap: {"op": *, "event": *, "handler": *, "hook": *, "timer": *, "provider": *} source
public providers: {} source
public staticAsset: {} source
Public Methods
public getFunc(kind: *, name: *): * source
Params:
Name | Type | Attribute | Description |
kind | * | ||
name | * |
Return:
* |
public getHandler(name: *, method: *): * source
Params:
Name | Type | Attribute | Description |
name | * | ||
method | * |
Return:
* |
public registerAsset(path: *, func: *) source
Params:
Name | Type | Attribute | Description |
path | * | ||
func | * |
public registerEvent(name: *, func: *) source
Params:
Name | Type | Attribute | Description |
name | * | ||
func | * |
public registerHandler(name: *, func: *, options: *) source
Params:
Name | Type | Attribute | Description |
name | * | ||
func | * | ||
options | * |
public registerHook(name: *, func: *, options: *) source
Params:
Name | Type | Attribute | Description |
name | * | ||
func | * | ||
options | * |
public registerOp(name: *, func: *, options: *) source
Params:
Name | Type | Attribute | Description |
name | * | ||
func | * | ||
options | * |
public registerProvider(providerType: *, providerID: *, provider: *, options: *) source
Params:
Name | Type | Attribute | Description |
providerType | * | ||
providerID | * | ||
provider | * | ||
options | * |
public registerTimer(name: *, func: *, options: *) source
Params:
Name | Type | Attribute | Description |
name | * | ||
func | * | ||
options | * |