Skip to content

aisbreaker-api-js - v0.1.15 / base/BaseAIsFilter / BaseAIsFilter

Class: BaseAIsFilter<PROPS_T>

base/BaseAIsFilter.BaseAIsFilter

Every service API must implement this interface.

Type parameters

NameType
PROPS_Textends FilterProps

Hierarchy

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new BaseAIsFilter<PROPS_T>(serviceProps, auth?)

Type parameters

NameType
PROPS_Textends FilterProps

Parameters

NameType
servicePropsPROPS_T
auth?Auth

Defined in

aisbreaker-js/packages/aisbreaker-api-js/src/base/BaseAIsFilter.ts:26

Properties

auth

Optional auth: Auth

Defined in

aisbreaker-js/packages/aisbreaker-api-js/src/base/BaseAIsFilter.ts:24


serviceProps

serviceProps: PROPS_T

set in constructor

Implementation of

AIsService.serviceProps

Defined in

aisbreaker-js/packages/aisbreaker-api-js/src/base/BaseAIsFilter.ts:23

Methods

getForward2Service

getForward2Service(): AIsService

Returns

AIsService

Defined in

aisbreaker-js/packages/aisbreaker-api-js/src/base/BaseAIsFilter.ts:33


process

Abstract process(request): Promise<ResponseFinal>

Let the service do its work.

Alternative names: infer, derive, task, reply, respond, process, ...

Parameters

NameType
requestRequest

Returns

Promise<ResponseFinal>

Implementation of

AIsService.process

Defined in

aisbreaker-js/packages/aisbreaker-api-js/src/base/BaseAIsFilter.ts:31

Released under the MIT License.