@sourceloop/core / Exports / ServiceSequence
Class: ServiceSequence¶
Implements¶
SequenceHandler
Table of contents¶
Constructors¶
Properties¶
- authenticateRequest
- checkAuthorisation
- expressMiddlewares
- findRoute
- i18n
- invoke
- invokeMiddleware
- logger
- parseParams
- reject
- send
Methods¶
Constructors¶
constructor¶
• new ServiceSequence(findRoute
, parseParams
, invoke
, send
, reject
, logger
, authenticateRequest
, checkAuthorisation
, i18n
)
Parameters¶
Name | Type |
---|---|
findRoute |
FindRoute |
parseParams |
ParseParams |
invoke |
InvokeMethod |
send |
Send |
reject |
Reject |
logger |
ILogger |
authenticateRequest |
AuthenticateFn <IAuthUserWithPermissions <string , string , string >> |
checkAuthorisation |
AuthorizeFn |
i18n |
i18nAPI |
Defined in¶
packages/core/src/service-sequence.ts:54
Properties¶
authenticateRequest¶
• Protected
authenticateRequest: AuthenticateFn
<IAuthUserWithPermissions
<string
, string
, string
>>
Defined in¶
packages/core/src/service-sequence.ts:65
checkAuthorisation¶
• Protected
checkAuthorisation: AuthorizeFn
Defined in¶
packages/core/src/service-sequence.ts:67
expressMiddlewares¶
• Protected
expressMiddlewares: ExpressRequestHandler
[] = []
Defined in¶
packages/core/src/service-sequence.ts:52
findRoute¶
• Protected
findRoute: FindRoute
Defined in¶
packages/core/src/service-sequence.ts:56
i18n¶
• Protected
i18n: i18nAPI
Defined in¶
packages/core/src/service-sequence.ts:69
invoke¶
• Protected
invoke: InvokeMethod
Defined in¶
packages/core/src/service-sequence.ts:60
invokeMiddleware¶
• Protected
invokeMiddleware: InvokeMiddleware
Optional invoker for registered middleware in a chain. To be injected via SequenceActions.INVOKE_MIDDLEWARE.
Defined in¶
packages/core/src/service-sequence.ts:50
logger¶
• logger: ILogger
Defined in¶
packages/core/src/service-sequence.ts:63
parseParams¶
• Protected
parseParams: ParseParams
Defined in¶
packages/core/src/service-sequence.ts:58
reject¶
• reject: Reject
Defined in¶
packages/core/src/service-sequence.ts:62
send¶
• send: Send
Defined in¶
packages/core/src/service-sequence.ts:61
Methods¶
_rejectErrors¶
▸ Private
_rejectErrors(err
): Error
Parameters¶
Name | Type |
---|---|
err |
any |
Returns¶
Error
Defined in¶
packages/core/src/service-sequence.ts:160
handle¶
▸ handle(context
): Promise
<void
>
Parameters¶
Name | Type |
---|---|
context |
RequestContext |
Returns¶
Promise
<void
>
Implementation of¶
SequenceHandler.handle