Module tikv::server::proxy[][src]

A module for forward connections from client.

Supposing server A is isolated from client, but it can still be accessed by server B, then client can send the message to server B and let server B forward the message to server A. TiKV will use request metadata key tikv_receiver_addr to check where the message should delievered to. If there is no such metadata, it will handle the message by itself.

Structs

Client
ClientPool
Proxy

A proxy struct that maintains connections to different addresses.

Constants

FORWARD_METADATA_KEY

Functions

build_forward_option

Build a call option that will make receiver to forward the rpc to target_address.

get_target_address

Checks if the message is supposed to send to another address.