Skip to main content

common_meta/
lib.rs

1// Copyright 2023 Greptime Team
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15pub mod affinity;
16pub mod cache;
17pub mod cache_invalidator;
18pub mod cluster;
19pub mod datanode;
20pub mod ddl;
21pub mod ddl_manager;
22pub mod distributed_time_constants;
23pub mod election;
24pub mod error;
25pub mod flow_name;
26pub mod heartbeat;
27pub mod instruction;
28pub mod key;
29pub mod kv_backend;
30pub mod leadership_notifier;
31pub mod lock_key;
32pub mod metrics;
33pub mod node_expiry_listener;
34pub mod node_manager;
35pub mod peer;
36pub mod poison_key;
37pub mod procedure_executor;
38pub mod range_stream;
39pub mod reconciliation;
40pub mod region_keeper;
41pub mod region_registry;
42pub mod rpc;
43pub mod sequence;
44pub mod snapshot;
45pub mod state_store;
46pub mod stats;
47#[cfg(any(test, feature = "testing"))]
48pub mod test_util;
49pub mod util;
50pub mod wal_provider;
51
52// The id of the datanode.
53pub type DatanodeId = u64;
54// The id of the flownode.
55pub type FlownodeId = u64;
56
57/// Schema options.
58pub type SchemaOptions = key::schema_name::SchemaNameValue;
59
60pub use instruction::RegionIdent;