# Copyright (c) 2024 The AimRT Authors.
# AimRT is licensed under Mulan PSL v2.

aimrt:
  plugin:
    plugins:
      - name: grpc_plugin
        path: ./libaimrt_grpc_plugin.so
        options:
          thread_num: 4
          listen_ip: 127.0.0.1
          listen_port: 50051
  log:
    core_lvl: Info # Trace/Debug/Info/Warn/Error/Fatal/Off
    backends:
      - type: console
  executor:
    executors:
      - name: work_thread_pool
        type: asio_thread
        options:
          thread_num: 4
  rpc:
    backends:
      - type: grpc
        options:
          clients_options:
            - func_name: "(.*)"
              server_url: http://127.0.0.1:50050
    clients_options:
      - func_name: "(.*)"
        enable_backends: [grpc]
  module:
    pkgs:
      - path: ./libros2_rpc_client_pkg.so
        enable_modules: [NormalRpcCoClientModule]
    modules:
      - name: NormalRpcCoClientModule
        log_lvl: INFO

# Module custom configuration
NormalRpcCoClientModule:
  rpc_frq: 0.5
