Skip to main content

common_meta/election/
object_store.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//! Object-store Authority election, Head v1 codec and conditional storage.
16
17mod authority;
18mod head;
19mod probe;
20mod store;
21#[cfg(test)]
22mod tests;
23
24pub use authority::{
25    Authority, AuthorityMutation, AuthorityPrecondition, AuthorityStatus, FencingToken,
26    TakeoverOutcome,
27};
28pub use head::{AuthorityHead, HEAD_FORMAT_VERSION, NodeIdentity};
29pub use store::{AuthorityState, HeadStore};