UNPKG
@tbmini/eureka-client-ts
Version:
latest (0.5.1)
0.5.1
0.5.0
0.4.0
0.3.5
--- id: eureka-client-ts ---
@tbmini/eureka-client-ts
/
example
/
index.ts
15 lines
(11 loc)
•
266 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/**
@format
*/
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'
)) })()