Teleforge API Reference - v0.1.0
Preparing search index...
bff/src
ServiceAdapter
Interface ServiceAdapter<TConfig>
interface
ServiceAdapter
<
TConfig
=
unknown
>
{
config
:
TConfig
;
name
:
string
;
connect
?:
()
=>
Promise
<
void
>
;
disconnect
?:
()
=>
Promise
<
void
>
;
health
?:
()
=>
Promise
<
HealthStatus
>
;
invoke
:
<
TInput
,
TOutput
>
(
operation
:
string
,
input
:
TInput
,
context
:
ServiceContext
,
)
=>
Promise
<
TOutput
>
;
}
Type Parameters
TConfig
=
unknown
Implemented by
HttpServiceAdapter
Index
Properties
config
name
connect?
disconnect?
health?
invoke
Properties
Readonly
config
config
:
TConfig
Readonly
name
name
:
string
Optional
connect
connect
?:
()
=>
Promise
<
void
>
Optional
disconnect
disconnect
?:
()
=>
Promise
<
void
>
Optional
health
health
?:
()
=>
Promise
<
HealthStatus
>
invoke
invoke
:
<
TInput
,
TOutput
>
(
operation
:
string
,
input
:
TInput
,
context
:
ServiceContext
,
)
=>
Promise
<
TOutput
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Properties
config
name
connect
disconnect
health
invoke
Teleforge API Reference - v0.1.0
Loading...