34 lines
704 B
Erlang
34 lines
704 B
Erlang
%%%-------------------------------------------------------------------
|
|
%%% @author anlicheng
|
|
%%% @copyright (C) 2025, <COMPANY>
|
|
%%% @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()
|
|
}).
|
|
|
|
%% id生成器
|
|
-record(id_generator, {
|
|
id,
|
|
value = 1
|
|
}). |