Class: Service

ProtoBuf.Builder. Service

Barebone of all runtime services.

Constructor

new Service(rpcImplopt)

Constructs a new runtime Service.

Parameters:
Name Type Attributes Description
rpcImpl function <optional>

RPC implementation receiving the method name and the message

Source:
Throws:

If the service cannot be created

Type
Error

Members

(static) $options :Object.<string, *>

Service options.

Type:
  • Object.<string, *>
Source:

(static, non-null) $type :ProtoBuf.Reflect.Service

Reflection type.

Type:
Source:

$options :Object.<string, *>

Service options.

Type:
  • Object.<string, *>
Source:

(non-null) $type :ProtoBuf.Reflect.Service

Reflection type.

Type:
Source:

(non-null) rpcImpl :function

Service implementation.

Type:
  • function
Source:

Methods

(abstract, static) [Method](rpcImplnon-null, req, callback)

Asynchronously performs an RPC call using the given RPC implementation.

Parameters:
Name Type Description
rpcImpl function

RPC implementation

req ProtoBuf.Builder.Message

Request

callback function

Callback receiving the error if any and the response either as a pre-parsed message or as its raw bytes

Source:

(abstract) [Method](req, callback)

Asynchronously performs an RPC call using the instance's RPC implementation.

Parameters:
Name Type Description
req ProtoBuf.Builder.Message

Request

callback function

Callback receiving the error if any and the response either as a pre-parsed message or as its raw bytes

Source: