UNPKG
@tuia/eureka-client-ts
Version:
latest (0.3.8)
0.3.8
0.3.7
@tuia/eureka-client-ts
/
example
/
index.ts
13 lines
(10 loc)
•
254 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
Eurekaclient
from
'../src/index'
const
client =
new
Eurekaclient
({
port
:
3000
,
appName
:
'huhu'
,
services
: [
'projectx'
], }); (
async
() => {
await
client.
start
();
console
.
log
(client.
getHost
(
'projectx'
,
'10.10.95.74'
,
'miria-29'
)); })();