dubbo.apache.org/dubbo-go/v3@v3.1.1/protocol/rest/config/reader/testdata/consumer_config.yml (about)

     1  # dubbo client yaml configure file
     2  
     3  filter: ""
     4  
     5  config_type:
     6    rest: "rest"
     7  
     8  # client
     9  request_timeout : "100ms"
    10  # connect timeout
    11  connect_timeout : "100ms"
    12  check: true
    13  rest_server: "resty"
    14  rest_produces: "*/*"
    15  rest_consumes: "*/*"
    16  
    17  # application config
    18  application:
    19    organization : "ikurento.com"
    20    name  : "BDTService"
    21    module : "dubbogo user-info client"
    22    version : "0.0.1"
    23    owner : "ZX"
    24    environment : "dev"
    25  
    26  registries :
    27  
    28    "hangzhouzk":
    29      protocol: "zookeeper"
    30      timeout	: "3s"
    31      address: "127.0.0.1:2181"
    32      username: ""
    33      password: ""
    34    "shanghaizk":
    35      protocol: "zookeeper"
    36      timeout	: "3s"
    37      address: "127.0.0.1:2182"
    38      username: ""
    39      password: ""
    40  
    41  references:
    42    "UserProvider":
    43      registry: "hangzhouzk,shanghaizk"
    44      filter: ""
    45      protocol : "rest"
    46      version: "1.0"
    47      group: "as"
    48      interface : "com.ikurento.user.UserProvider"
    49      url: "dubbo://127.0.0.1:20000/UserProvider"
    50      cluster: "failover"
    51      timeout: "3s"
    52      rest_client: "resty1"
    53      rest_produces: "application/xml"
    54      rest_consumes: "application/xml"
    55      methods :
    56        - name: "GetUser"
    57          retries: "3"
    58          timeout: "5s"
    59          rest_query_params: "1:userid,2:username"
    60          rest_headers: "3:age"
    61          rest_path_params: "4:time,2:name"
    62          rest_body: 0
    63          rest_produces: "application/xml"
    64          rest_consumes: "application/xml"
    65  
    66      params:
    67        "serviceid":
    68          "soa.com.ikurento.user.UserProvider"
    69        "forks": 5
    70  
    71  shutdown_conf:
    72    timeout: 60s
    73    step-timeout: 10s
    74