meta_srv/
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(result_flattening)]
16#![feature(assert_matches)]
17#![feature(hash_set_entry)]
18#![feature(let_chains)]
19#![feature(duration_constructors_lite)]
20#![feature(duration_constructors)]
21
22pub mod bootstrap;
23pub mod cache_invalidator;
24pub mod cluster;
25pub mod election;
26pub mod error;
27pub mod events;
28mod failure_detector;
29pub mod flow_meta_alloc;
30pub mod handler;
31pub mod key;
32pub mod lease;
33pub mod metasrv;
34pub mod metrics;
35#[cfg(feature = "mock")]
36pub mod mocks;
37pub mod node_excluder;
38pub mod procedure;
39pub mod pubsub;
40pub mod region;
41pub mod selector;
42pub mod service;
43pub mod state;
44pub mod table_meta_alloc;
45pub mod utils;
46
47pub use crate::error::Result;
48
49mod greptimedb_telemetry;
50
51#[cfg(test)]
52mod test_util;