Module service_module_definition

Module service_module_definition 

Source
Expand description

It contains all the types related to the auto-codegeneration for a defined RPC service when a .proto is compiled.

A ServiceModuleDefinition is auto-generated when a .proto is compiled. And it’s filled with the defined procedures. Actually, you probably don’t need to use this module or their types.

Structs§

ProcedureContext
The context type received by every procedure
ServiceModuleDefinition
It stores all procedures defined for a RPC service

Enums§

ProcedureDefinition
Type used for storing procedure definitions given by the codegeneration for the RPC service

Type Aliases§

BiStreamsPayload
Payload type that a bidirection streams procedure rceives
BiStreamsRequestHandler
Handler type for a bidirectional streams procedure
BiStreamsResponse
Response type returned by a bidirectional streams procedure
ClientStreamsPayload
Payload type that a client streams procedure receives
ClientStreamsRequestHandler
Handler type for a client streams procedure
ClientStreamsResponse
Response type returned by a client streams procedure
CommonPayload
Payload for procedures which don’t receive a stream
Response
General type returned by every procedure
ServerStreamsRequestHandler
Handler type for a server streams procedure
ServerStreamsResponse
Response type returned by a server streams procedure
UnaryRequestHandler
Handler type for a unary procedure.
UnaryResponse
Response type returned by a unary procedure