@mcsb/framework / Exports / Service
Class: Service
Hierarchy
Service
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new Service(inputPath
)
Parameters
Name | Type |
---|---|
inputPath | string |
Defined in
Properties
path
• Readonly
path: string
Defined in
Methods
addEndpoint
▸ addEndpoint(path
, endpoint
): Service
Parameters
Name | Type |
---|---|
path | string |
endpoint | Endpoint |
Returns
Defined in
addPlugin
▸ addPlugin(plugin
): Service
Parameters
Name | Type |
---|---|
plugin | Plugin |
Returns
Defined in
addService
▸ addService(service
): Service
Parameters
Name | Type |
---|---|
service | Service |
Returns
Defined in
allEndpoints
▸ allEndpoints(): Map
<string
, Endpoint
>
Returns
Map
<string
, Endpoint
>
Defined in
destroy
▸ destroy(): void
Returns
void
Defined in
getServices
▸ getServices(): Service
[]
Returns
Service
[]
Defined in
ownEndpoints
▸ ownEndpoints(): Map
<string
, Endpoint
>
Returns
Map
<string
, Endpoint
>
Defined in
searchForCircularStructure
▸ Protected
searchForCircularStructure(visited?
): boolean
Parameters
Name | Type | Default value |
---|---|---|
visited | Service [] | [] |
Returns
boolean