Module riak_api_basic_pb_service

The PB service for cluster health messages.

Behaviours: riak_api_pb_service.

Description

The PB service for cluster health messages. This covers the following request messages in the original protocol:

    1 - RpbPingReq
    7 - RpbGetServerInfoReq
  

This service produces the following responses:

    2 - RpbPingResp
    8 - RpbGetServerInfoResp
  

The semantics are unchanged from their original implementations.

Function Index

decode/2decode/2 callback.
encode/1encode/1 callback.
init/0init/0 callback.
process/2process/2 callback.
process_stream/3process_stream/3 callback.

Function Details

decode/2

decode(Code, Bin) -> any()

decode/2 callback. Decodes an incoming message.

encode/1

encode(Message) -> any()

encode/1 callback. Encodes an outgoing response message.

init/0

init() -> undefined

init/0 callback. Returns the service internal start state. This service has no state.

process/2

process(X1, State) -> any()

process/2 callback. Handles an incoming request message.

process_stream/3

process_stream(X1, X2, State) -> any()

process_stream/3 callback. Handles a streaming message received by the server on behalf of the service. This service implements no streaming responses, so all messages are ignored.


Generated by EDoc