%%%------------------------------------------------------------------- %%% @author anlicheng %%% @copyright (C) 2025, %%% @doc %%% %%% @end %%% Created : 30. 4月 2025 11:16 %%%------------------------------------------------------------------- -author("anlicheng"). %% 用来保存微服务 -record(service, { service_id :: binary(), tar_url :: binary(), %% 工作目录 root_dir :: binary(), params :: binary(), metrics :: binary(), %% 状态: 0: 停止, 1: 运行中 status = 0 }). %% 数据缓存 -record(cache, { id = 0 :: integer(), method :: integer(), data :: binary() }). %% 数据缓存 -record(task_log, { task_id = 0 :: integer(), logs = []:: list() }). %% id生成器 -record(id_generator, { id, value = 1 }).