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