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
15#![feature(assert_matches)]
16#![feature(duration_millis_float)]
17
18pub mod cache;
19pub mod cache_invalidator;
20pub mod cluster;
21pub mod datanode;
22pub mod ddl;
23pub mod ddl_manager;
24pub mod distributed_time_constants;
25pub mod election;
26pub mod error;
27pub mod flow_name;
28pub mod heartbeat;
29pub mod instruction;
30pub mod key;
31pub mod kv_backend;
32pub mod leadership_notifier;
33pub mod lock_key;
34pub mod metrics;
35pub mod node_expiry_listener;
36pub mod node_manager;
37pub mod peer;
38pub mod poison_key;
39pub mod procedure_executor;
40pub mod range_stream;
41pub mod reconciliation;
42pub mod region_keeper;
43pub mod region_registry;
44pub mod rpc;
45pub mod sequence;
46pub mod snapshot;
47pub mod state_store;
48pub mod stats;
49#[cfg(any(test, feature = "testing"))]
50pub mod test_util;
51pub mod util;
52pub mod wal_provider;
53
54// The id of the datanode.
55pub type DatanodeId = u64;
56// The id of the flownode.
57pub type FlownodeId = u64;
58
59/// Schema options.
60pub type SchemaOptions = key::schema_name::SchemaNameValue;
61
62pub use instruction::RegionIdent;