@mcsb/framework / Exports / Starboard
Class: Starboard
Hierarchy
↳
Starboard
Table of contents
Constructors
Properties
Methods
- addEndpoint
- addPlugin
- addService
- allEndpoints
- destroy
- getHostname
- getPort
- getServer
- getServices
- isRunning
- ownEndpoints
- searchForCircularStructure
- start
- stop
Constructors
constructor
• new Starboard(options?
)
Parameters
Name | Type |
---|---|
options? | ServeOptions |
Overrides
Defined in
Properties
path
• Readonly
path: string
Inherited from
Defined in
Methods
addEndpoint
▸ addEndpoint(path
, endpoint
): Starboard
Parameters
Name | Type |
---|---|
path | string |
endpoint | Endpoint |
Returns
Inherited from
Defined in
addPlugin
▸ addPlugin(plugin
): Starboard
Parameters
Name | Type |
---|---|
plugin | Plugin |
Returns
Inherited from
Defined in
addService
▸ addService(service
): Starboard
Parameters
Name | Type |
---|---|
service | Service |
Returns
Inherited from
Defined in
allEndpoints
▸ allEndpoints(): Map
<string
, Endpoint
>
Returns
Map
<string
, Endpoint
>
Inherited from
Defined in
destroy
▸ destroy(): void
Returns
void
Inherited from
Defined in
getHostname
▸ getHostname(): string
Returns
string
Defined in
getPort
▸ getPort(): number
Returns
number
Defined in
getServer
▸ getServer(): undefined
| Server
<typeof IncomingMessage
, typeof ServerResponse
>
Returns
undefined
| Server
<typeof IncomingMessage
, typeof ServerResponse
>
Defined in
getServices
▸ getServices(): Service
[]
Returns
Service
[]
Inherited from
Defined in
isRunning
▸ isRunning(): boolean
Returns
boolean
Defined in
ownEndpoints
▸ ownEndpoints(): Map
<string
, Endpoint
>
Returns
Map
<string
, Endpoint
>
Inherited from
Defined in
searchForCircularStructure
▸ Protected
searchForCircularStructure(visited?
): boolean
Parameters
Name | Type | Default value |
---|---|---|
visited | Service [] | [] |
Returns
boolean
Inherited from
Service.searchForCircularStructure
Defined in
start
▸ start(): Promise
<void
>
Returns
Promise
<void
>
Defined in
stop
▸ stop(): Promise
<void
>
Returns
Promise
<void
>