batata_client/common/
constants.rs1pub const DEFAULT_SERVER_PORT: u16 = 8848;
3
4pub const GRPC_PORT_OFFSET: u16 = 1000;
6
7pub const DEFAULT_GROUP: &str = "DEFAULT_GROUP";
9
10pub const DEFAULT_NAMESPACE: &str = "public";
12
13pub const DEFAULT_CLUSTER: &str = "DEFAULT";
15
16pub const CLIENT_VERSION: &str = "Batata-Rust-Client:0.1.0";
18
19pub const LABEL_SOURCE: &str = "source";
21pub const LABEL_SOURCE_SDK: &str = "sdk";
22pub const LABEL_MODULE: &str = "module";
23pub const LABEL_MODULE_CONFIG: &str = "config";
24pub const LABEL_MODULE_NAMING: &str = "naming";
25pub const LABEL_APP_NAME: &str = "AppName";
26
27pub const CONFIG_MODULE: &str = "config";
29pub const NAMING_MODULE: &str = "naming";
30pub const INTERNAL_MODULE: &str = "internal";
31
32pub const REGISTER_INSTANCE: &str = "registerInstance";
34pub const DEREGISTER_INSTANCE: &str = "deregisterInstance";
35pub const UPDATE_INSTANCE: &str = "updateInstance";
36
37pub const INSTANCE_TYPE_EPHEMERAL: &str = "ephemeral";
39pub const INSTANCE_TYPE_PERSISTENT: &str = "persistent";
40
41pub const DEFAULT_TIMEOUT_MS: u64 = 3000;
43
44pub const DEFAULT_HEARTBEAT_INTERVAL_MS: u64 = 5000;
46
47pub const DEFAULT_RECONNECT_DELAY_MS: u64 = 3000;
49
50pub const CONFIG_CHANGE_ADD: &str = "add";
52pub const CONFIG_CHANGE_MODIFY: &str = "modify";
53pub const CONFIG_CHANGE_DELETE: &str = "delete";