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