@scalecube/api
Advanced tools
Comparing version 0.2.10-develop.1596044522 to 0.2.10-develop.1598736437
@@ -1,5 +0,4 @@ | ||
import { ConnectWorkerEvent, ConnectWorkerEventType } from './ConnectWorkerEvent'; | ||
import { ClusterEvent, MemberEventType } from './ClusterEvent'; | ||
import { Cluster, JoinCluster, ClusterOptions } from './Cluster'; | ||
import { MembersMap, MembersPort, MembersData } from './MemberMap'; | ||
export { ConnectWorkerEvent, ConnectWorkerEventType, ClusterEvent, Cluster, JoinCluster, ClusterOptions, MembersMap, MembersPort, MembersData, MemberEventType, }; | ||
import { MembersData } from './MemberMap'; | ||
export { ClusterEvent, Cluster, JoinCluster, ClusterOptions, MembersData, MemberEventType }; |
/** | ||
* member connection state | ||
*/ | ||
export interface MembersMap { | ||
membersState: MembersData; | ||
membersPort: MembersPort; | ||
} | ||
/** | ||
* information of the other members. | ||
@@ -15,8 +8,1 @@ * <member, metadata of the member> | ||
} | ||
/** | ||
* information of the connected ports | ||
* <member, MessagePort> | ||
*/ | ||
export interface MembersPort { | ||
[member: string]: MessagePort; | ||
} |
@@ -1,1 +0,1 @@ | ||
export { ServerTransportOptions, ClientTransportOptions, RequestHandler, Transport, ServerStop, ClientTransport, ServerTransport, TDestroy, TLogger, TDestroyOptions, } from './Transport'; | ||
export { ServerTransportOptions, ClientTransportOptions, Invoker, Transport, ServerStop, ClientTransport, ServerTransport, TDestroy, TLogger, TDestroyOptions, } from './Transport'; |
@@ -23,5 +23,5 @@ import { Address } from '../index'; | ||
* @property start | ||
* open connection to remote container and resolve with RequestHandler to call the remote container | ||
* open connection to remote container and resolve with Invoker to call the remote container | ||
*/ | ||
start: (options: ClientTransportOptions) => Promise<RequestHandler>; | ||
start: (options: ClientTransportOptions) => Promise<Invoker>; | ||
/** | ||
@@ -59,3 +59,3 @@ * @method destroy | ||
*/ | ||
serviceCall: RequestHandler; | ||
serviceCall: Invoker; | ||
/** | ||
@@ -68,5 +68,5 @@ * @method logger | ||
/** | ||
* @interface RequestHandler | ||
* @interface Invoker | ||
*/ | ||
export interface RequestHandler { | ||
export interface Invoker { | ||
/** | ||
@@ -73,0 +73,0 @@ * @method requestResponse |
{ | ||
"name": "@scalecube/api", | ||
"version": "0.2.10-develop.1596044522", | ||
"version": "0.2.10-develop.1598736437", | ||
"private": false, | ||
@@ -29,3 +29,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "8860b329cb20743494baf1347f887a56f5d82fcb" | ||
"gitHead": "1c39932be182652ef7c16487488b3c72bbcd3269" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30887
53
602