24 lines
663 B
Erlang
24 lines
663 B
Erlang
%%%-------------------------------------------------------------------
|
|
%%% @author anlicheng
|
|
%%% @copyright (C) 2025, <COMPANY>
|
|
%%% @doc
|
|
%%%
|
|
%%% @end
|
|
%%% Created : 29. 9月 2025 15:27
|
|
%%%-------------------------------------------------------------------
|
|
-author("anlicheng").
|
|
|
|
-define(SERVICE_STOPPED, 0).
|
|
-define(SERVICE_RUNNING, 1).
|
|
|
|
%% 用来保存微服务
|
|
-record(service, {
|
|
service_id :: binary(),
|
|
container_name :: binary(),
|
|
%% 配置信息, 微服务启动的时候自己注册的信息
|
|
meta_data = #{} :: map(),
|
|
%% 状态: 0: 停止, 1: 运行中
|
|
status = 0,
|
|
create_ts = 0 :: integer(),
|
|
update_ts = 0 :: integer()
|
|
}). |