Method: ConfigureTarget#configure

Defined in:
src/ruby/pb/test/xds_client.rb

#configure(req, _call) ⇒ Object


117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# File 'src/ruby/pb/test/xds_client.rb', line 117

def configure(req, _call)
   = {}
  req..each do |m|
    rpc = m.type
    if !.key?(rpc)
      [rpc] = {}
    end
     = m.key
     = m.value
    [rpc][] = 
  end
  new_rpc_config = RpcConfig.new
  new_rpc_config.init(req['types'], , req['timeout_sec'])
  $rpc_config = new_rpc_config
  ClientConfigureResponse.new()
end