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