rpc package
Classes
|
Class |
Description |
|---|---|
|
Generic cache registry | |
|
Class IMQLock. Implements promise-based locks. | |
|
Class RedisCache. Implements cache engine over redis. |
Abstract Classes
|
Abstract Class |
Description |
|---|---|
|
Class IMQClient - base abstract class for service clients. | |
|
Class IMQService Basic abstract service (server-side) implementation |
Functions
|
Function |
Description |
|---|---|
|
Returns the metadata of the in-flight IMQ request for the current async execution, if any. Returns {IMQMetadata | undefined} | |
|
Expose decorator factory {( target: object, methodName: (string), descriptor: TypedPropertyDescriptor<(...args: any[]) => any> ) => void} - decorator function | |
|
Checks if file exists at given path | |
|
Removes pid file for a given name and id | |
|
Builds and returns call rejector, which supports after call optional hook | |
|
Builds and returns call resolver, which supports after call optional hook | |
|
Builds JSON representation of IMQ Error | |
|
Implements '@indexed' decorator factory This is used to specify complex service types which are need to expose types containing indexed definition, for example: | |
|
@lock() decorator implementation Will make all simultaneous similar method calls locked to be resolved with the first obtained values. Similarity is identified by a bypassed method argument values. | |
|
Logger decorator factory for class methods. Will try, catch and log errors during method calls. If logger is bypassed, will use given logger, otherwise will try to use logger defined on class dynamically or statically or will fallback to console. | |
|
Async mkdir | |
|
Returns machine UUID | |
|
Returns increment-based process identifier for a given name | |
|
Implements '@property' decorator factory This is used to specify complex service types to be exposed | |
|
Implements '@remote' decorator factory {( target: any, methodName: (string), descriptor: TypedPropertyDescriptor<(...args: any[]) => any> ) => void} | |
|
Runs the given function with The binding is scoped to the function: it is established for the duration of the call and automatically removed afterwards, which keeps concurrent requests isolated from one another. | |
|
Sends IMQ response with support of after call optional hook | |
|
Constructs and returns hash string for a given set of className, methodName and arguments. | |
|
Async writeFile |
Interfaces
|
Interface |
Description |
|---|---|
|
Method argument description | |
|
Response error data structure, which service returns if error occurred during service method execution. | |
|
Request message data structure expected to be handled by a service | |
|
Response message data structure, which service replies to handled requests. | |
|
Method description | |
|
Methods collection description | |
|
Service type description | |
|
Return value description | |
|
Service class description | |
|
Service description | |
|
Service types description | |
|
Entire service types metadata structure |
Variables
|
Variable |
Description |
|---|---|
|
Default client options {IMQClientOptions} | |
|
Default metric server options {NonNullable | |
|
Default service options {IMQServiceOptions} | |
Type Aliases
|
Type Alias |
Description |
|---|---|