@sourceloop/search-service / Exports / SearchServiceComponent
Class: SearchServiceComponent<T>¶
Type parameters¶
Name | Type |
---|---|
T |
extends Model |
Implements¶
Component
Table of contents¶
Constructors¶
Properties¶
Methods¶
Constructors¶
constructor¶
• new SearchServiceComponent<T
>(application
, config
)
Type parameters¶
Name | Type |
---|---|
T |
extends Model <T > |
Parameters¶
Name | Type |
---|---|
application |
RestApplication |
config |
SearchServiceConfig <T > |
Defined in¶
services/search-service/src/component.ts:48
Properties¶
application¶
• Private
Readonly
application: RestApplication
Defined in¶
services/search-service/src/component.ts:50
bindings¶
• bindings: Binding
<any
>[] = []
Implementation of¶
Component.bindings
Defined in¶
services/search-service/src/component.ts:134
config¶
• Private
Readonly
config: SearchServiceConfig
<T
>
Defined in¶
services/search-service/src/component.ts:52
controllers¶
• Optional
controllers: ControllerClass
<any
>[]
An array of controller classes
Implementation of¶
Component.controllers
Defined in¶
services/search-service/src/component.ts:151
models¶
• Optional
models: Class
<Model
>[]
An optional list of Model classes to bind for dependency injection
via app.model()
API.
Defined in¶
services/search-service/src/component.ts:146
providers¶
• providers: ProviderMap
= {}
Implementation of¶
Component.providers
Defined in¶
services/search-service/src/component.ts:132
repositories¶
• Optional
repositories: Class
<Repository
<Model
>>[]
An optional list of Repository classes to bind for dependency injection
via app.repository()
API.
Defined in¶
services/search-service/src/component.ts:140
Methods¶
createResultModel¶
▸ createResultModel(base
, models
): typeof Model
Parameters¶
Name | Type |
---|---|
base |
typeof Model |
models |
string [] |
Returns¶
typeof Model
Defined in¶
services/search-service/src/component.ts:184
setupSequence¶
▸ setupSequence(): void
Setup ServiceSequence by default if no other sequnce provided
Returns¶
void