repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/comms/conf.rs
lib/src/comms/conf.rs
use std::net::IpAddr; use std::net::SocketAddr; #[allow(unused_imports)] use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use ate_comms::StreamTx; use crate::comms::NodeId; use crate::conf::ConfMesh; use crate::conf::MeshAddress; use crate::crypto::EncryptKey; use crate::crypto::KeySize; use cr...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/comms/listener.rs
lib/src/comms/listener.rs
#![allow(unused_imports)] use crate::crypto::KeySize; use crate::error::*; use crate::spec::*; use async_trait::async_trait; use error_chain::bail; use serde::{de::DeserializeOwned, Serialize}; use std::marker::PhantomData; use std::net::SocketAddr; use std::sync::Arc; use std::sync::Mutex as StdMutex; use std::sync::W...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/comms/rx_tx.rs
lib/src/comms/rx_tx.rs
use fxhash::FxHashMap; use rand::seq::SliceRandom; use serde::{de::DeserializeOwned, Serialize}; use std::sync::Arc; use std::sync::Mutex as StdMutex; use std::sync::Weak; use tokio::sync::broadcast; use tokio::sync::Mutex; #[allow(unused_imports)] use tracing::{debug, error, info, instrument, span, trace, warn, Level}...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/comms/client.rs
lib/src/comms/client.rs
use std::ops::DerefMut; use std::net::SocketAddr; #[cfg(not(feature = "enable_dns"))] use std::net::ToSocketAddrs; use std::result::Result; use std::sync::Arc; use std::sync::Mutex as StdMutex; use error_chain::bail; use fxhash::FxHashMap; use serde::{de::DeserializeOwned, Serialize}; #[cfg(feature = "enable_full")] us...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/comms/certificate_validation.rs
lib/src/comms/certificate_validation.rs
pub use ate_comms::CertificateValidation;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/comms/helper.rs
lib/src/comms/helper.rs
use async_trait::async_trait; use bytes::Bytes; use serde::{de::DeserializeOwned, Serialize}; use std::net::SocketAddr; use std::sync::Arc; use std::sync::Mutex as StdMutex; use tokio::io::Error as TError; use tokio::io::ErrorKind; #[allow(unused_imports)] use tokio::io::{self}; #[cfg(feature = "enable_full")] use toki...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/comms/hello.rs
lib/src/comms/hello.rs
pub use ate_comms::mesh_hello_exchange_receiver; pub use ate_comms::mesh_hello_exchange_sender; pub use ate_comms::HelloMetadata; pub use ate_comms::MessageProtocolVersion as StreamProtocolVersion;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/comms/mod.rs
lib/src/comms/mod.rs
#![allow(unused_imports)] use tracing::{debug, error, info, instrument, span, trace, warn, Level}; mod certificate_validation; #[cfg(feature = "enable_client")] mod client; mod conf; pub mod hello; mod helper; pub mod key_exchange; #[cfg(feature = "enable_server")] mod listener; mod metrics; mod packet; mod rx_tx; mod...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/comms/metrics.rs
lib/src/comms/metrics.rs
#[derive(Debug, Clone, Default)] pub struct Metrics { pub received: u64, pub sent: u64, pub requests: u64, pub chain_size: u64, }
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/comms/key_exchange.rs
lib/src/comms/key_exchange.rs
pub use ate_comms::mesh_key_exchange_receiver; pub use ate_comms::mesh_key_exchange_sender;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/time/keeper.rs
lib/src/time/keeper.rs
#[allow(unused_imports)] use tracing::{debug, error, info}; use crate::conf::*; use crate::error::*; #[cfg(feature = "enable_ntp")] use super::worker::NtpWorker; use super::ChainTimestamp; #[cfg(feature = "enable_ntp")] use std::sync::Arc; use std::time::Duration; use std::time::SystemTime; use std::time::UNIX_EPOCH;...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/time/timestamp.rs
lib/src/time/timestamp.rs
use serde::{Deserialize, Serialize}; #[derive( Serialize, Deserialize, Debug, Clone, Copy, Hash, Default, PartialEq, Eq, PartialOrd, Ord, )] pub struct ChainTimestamp { pub time_since_epoch_ms: u64, } impl ChainTimestamp { pub fn inc(mut self) -> Self { self.time_since_epoch_ms = self.time_since_e...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/time/worker.rs
lib/src/time/worker.rs
use fxhash::FxHashMap; #[allow(unused_imports)] use tracing::{debug, error, info, trace, warn}; use crate::conf::*; use crate::engine::TaskEngine; use crate::error::*; use once_cell::sync::Lazy; use std::sync::Arc; use std::time::Duration; use std::time::SystemTime; use std::time::UNIX_EPOCH; use tokio::sync::watch::...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/time/mod.rs
lib/src/time/mod.rs
mod enforcer; mod keeper; #[cfg(feature = "enable_ntp")] mod ntp; mod timestamp; #[cfg(feature = "enable_ntp")] mod worker; pub use enforcer::TimestampEnforcer; pub use keeper::TimeKeeper; pub use timestamp::ChainTimestamp; #[cfg(feature = "enable_ntp")] pub use worker::NtpWorker;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/time/enforcer.rs
lib/src/time/enforcer.rs
use error_chain::bail; #[allow(unused_imports)] use tracing::{debug, error, info}; use crate::conf::*; use crate::error::*; use crate::event::EventHeader; use crate::index::*; use crate::lint::*; use crate::meta::*; use crate::plugin::*; use crate::session::*; use crate::sink::*; use crate::transaction::*; use crate::...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/time/ntp.rs
lib/src/time/ntp.rs
#![allow(unused_imports)] use crate::engine::timeout; use error_chain::bail; use std::fmt::Debug; use std::fmt::Formatter; use std::mem; use std::net::{SocketAddr, ToSocketAddrs}; use std::str; use std::time; use std::time::Duration; use tokio::io; use tokio::net; use tokio::net::UdpSocket; use tracing::{debug, error, ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/utils/key.rs
lib/src/utils/key.rs
use crate::prelude::*; pub fn chain_key_16hex(val: &str, prefix: Option<&str>) -> ChainKey { let hash = AteHash::from(val.to_string()); let hex = hash.to_hex_string().to_lowercase(); match prefix { Some(prefix) => ChainKey::new(format!("{}-{}", prefix, &hex[..16])), None => ChainKey::new(fo...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/utils/io.rs
lib/src/utils/io.rs
use std::fmt; use std::fs::File; use std::str::FromStr; use std::io::{BufReader, BufRead, Error, Read}; pub fn load_node_list(list: Option<String>) -> Option<Vec<String>> { match list { Some(list) => { let list = shellexpand::tilde(&list).to_string(); let file = File::open(list.as_s...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/utils/progress.rs
lib/src/utils/progress.rs
#![allow(unused_imports, dead_code)] use async_trait::async_trait; use pbr::ProgressBar; use pbr::Units; use std::io::Write; use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use crate::error::ChainCreationError; use crate::event::EventWeakData; use crate::loader::LoadData; use crate::mesh::Load...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/utils/mod.rs
lib/src/utils/mod.rs
#![cfg_attr(debug_assertions, allow(dead_code, unused_imports))] #![allow(unused_imports)] use tracing::{debug, error, info}; mod key; mod progress; mod io; use ate_crypto::utils; pub use ate_crypto::utils::b64; pub use ate_crypto::utils::log; pub use ate_crypto::utils::test; pub use super::utils::test::*; pub use u...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/bin/stress.rs
lib/src/bin/stress.rs
#![allow(unused_imports)] use ate::prelude::*; use serde::{Deserialize, Serialize}; use tracing::info; #[derive(Debug, Serialize, Deserialize, Clone)] struct MyTestObject { firstname: String, lastname: String, data: [u128; 32], lines: Vec<String>, } #[cfg(not(feature = "server"))] fn main() {} #[cfg(...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/redo/log_memdb.rs
lib/src/redo/log_memdb.rs
use async_trait::async_trait; use bytes::*; use error_chain::bail; use fxhash::FxHashMap; use std::pin::Pin; use tokio::io::Result; #[allow(unused_imports)] use tracing::{debug, error, info, warn}; use crate::error::*; use crate::event::*; use crate::loader::*; use crate::spec::*; use crate::{crypto::*, redo::LogLooku...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/redo/test.rs
lib/src/redo/test.rs
#![cfg(test)] use bytes::Bytes; use tokio::runtime::Runtime; #[allow(unused_imports)] use tracing::{debug, error, info, warn}; use crate::chain::*; use crate::crypto::*; use crate::event::*; use crate::header::*; use crate::meta::*; use crate::spec::*; use super::api::LogWritable; use super::core::RedoLog; #[cfg(feat...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/redo/log_localfs.rs
lib/src/redo/log_localfs.rs
use async_trait::async_trait; use error_chain::bail; use std::pin::Pin; #[allow(unused_imports)] use tracing::{debug, error, info, warn}; use bytes::Bytes; #[allow(unused_imports)] #[cfg(feature = "enable_caching")] use cached::Cached; #[cfg(feature = "enable_caching")] use cached::*; use fxhash::FxHashMap; #[cfg(feat...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/redo/log_traits.rs
lib/src/redo/log_traits.rs
use async_trait::async_trait; use std::pin::Pin; #[allow(unused_imports)] use tracing::{debug, error, info, warn}; use tokio::io::Result; use bytes::Bytes; use crate::error::*; use crate::event::*; use crate::loader::*; use crate::{crypto::*, redo::LogLookup}; #[async_trait] pub trait LogFile where Self: Sync + ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/redo/archive.rs
lib/src/redo/archive.rs
#[allow(unused_imports)] use tracing::{debug, error, info, warn}; use async_trait::async_trait; use std::io::SeekFrom; use std::mem::size_of; use tokio::fs::File; use tokio::io::Result; use tokio::io::{AsyncReadExt, AsyncSeekExt, AsyncWriteExt}; use tokio::sync::Mutex; use tokio::sync::MutexGuard; use super::magic::*...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/redo/magic.rs
lib/src/redo/magic.rs
use num_enum::IntoPrimitive; use num_enum::TryFromPrimitive; use std::convert::TryFrom; use tokio::io::ErrorKind; use crate::spec::LogApi; static LOG_MAGIC: &'static [u8; 3] = b"RED"; #[derive(Debug, Clone, Copy, Eq, PartialEq, IntoPrimitive, TryFromPrimitive)] #[repr(u8)] pub enum RedoMagic { V2 = b'1', } #[de...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/redo/core.rs
lib/src/redo/core.rs
#![allow(unused_imports)] use async_trait::async_trait; #[cfg(feature = "enable_local_fs")] use std::collections::VecDeque; use std::pin::Pin; use tokio::io::Error; use tokio::io::ErrorKind; use tokio::io::Result; use tracing::{debug, error, info, trace, warn}; use bytes::Bytes; #[cfg(feature = "enable_local_fs")] use...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/redo/flags.rs
lib/src/redo/flags.rs
use crate::spec::*; #[derive(Debug, Clone, Copy)] pub struct OpenFlags { pub read_only: bool, pub truncate: bool, pub temporal: bool, pub integrity: TrustMode, } impl OpenFlags { pub fn create_distributed() -> OpenFlags { OpenFlags { read_only: false, truncate: true...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/redo/api.rs
lib/src/redo/api.rs
#[allow(unused_imports)] use tracing::{debug, error, info, warn}; use crate::error::*; use crate::event::*; use async_trait::async_trait; use tokio::io::Result; pub use crate::spec::LogLookup; #[async_trait] pub trait LogWritable { /// Writes data to the redo log and returns the new offset in bytes async fn ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/redo/flip.rs
lib/src/redo/flip.rs
use async_trait::async_trait; use tokio::io::Result; #[allow(unused_imports)] use tracing::{debug, error, info, warn}; use crate::crypto::AteHash; use crate::error::*; use crate::event::*; use super::api::LogWritable; use super::core::RedoLog; use super::{log_traits::LogFile, LogLookup}; pub struct FlippedLogFile { ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/redo/model.rs
lib/src/redo/model.rs
#[allow(unused_imports)] use tracing::{error, info, warn, debug}; use crate::{crypto::Hash}; use tokio::sync::Mutex as MutexAsync; use cached::*; use fxhash::FxHashMap; use super::loader::LoadData;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/redo/mod.rs
lib/src/redo/mod.rs
#[allow(unused_imports)] use tracing::{debug, error, info, warn}; mod api; #[cfg(feature = "enable_local_fs")] mod appender; #[cfg(feature = "enable_local_fs")] mod archive; mod core; mod flags; mod flip; mod loader; #[cfg(feature = "enable_local_fs")] mod log_localfs; mod log_memdb; mod log_traits; mod magic; mod tes...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/redo/loader.rs
lib/src/redo/loader.rs
#[allow(unused_imports)] use tracing::{debug, error, info, warn}; use async_trait::async_trait; use tokio::sync::mpsc; use crate::loader::*; pub struct RedoLogLoader { feed: mpsc::Sender<LoadData>, } impl RedoLogLoader { pub fn new() -> (Box<RedoLogLoader>, mpsc::Receiver<LoadData>) { let (tx, rx) =...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/redo/appender.rs
lib/src/redo/appender.rs
use async_trait::async_trait; use std::io::SeekFrom; use std::mem::size_of; use error_chain::bail; use tokio::fs::File; use tokio::fs::OpenOptions; #[cfg(feature = "enable_buffered")] use tokio::io::BufStream; use tokio::io::Result; use tokio::io::{AsyncReadExt, AsyncSeekExt, AsyncWriteExt}; use super::archive::*; use...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/session/session_user.rs
lib/src/session/session_user.rs
#[allow(unused_imports)] use serde::{de::DeserializeOwned, Deserialize, Serialize}; use crate::crypto::*; use super::*; pub type SessionToken = Option<EncryptedSecureData<EncryptKey>>; /// Sessions hold facts about the user that give them certains /// rights and abilities to view data within the chain-of-trust. ///...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/session/group_role.rs
lib/src/session/group_role.rs
#[allow(unused_imports)] use serde::{de::DeserializeOwned, Deserialize, Serialize}; use crate::crypto::*; use super::*; #[derive(Serialize, Deserialize, Debug, Clone)] pub struct AteGroupRole { pub purpose: AteRolePurpose, pub properties: Vec<AteSessionProperty>, } impl AteGroupRole { pub fn add_read_ke...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/session/session_property.rs
lib/src/session/session_property.rs
#[allow(unused_imports)] use serde::{de::DeserializeOwned, Deserialize, Serialize}; use crate::crypto::*; #[allow(dead_code)] #[derive(Serialize, Deserialize, Debug, Clone)] pub enum AteSessionProperty { None, ReadKey(EncryptKey), PrivateReadKey(PrivateEncryptKey), PublicReadKey(PublicEncryptKey), ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/session/group.rs
lib/src/session/group.rs
#[allow(unused_imports)] use serde::{de::DeserializeOwned, Deserialize, Serialize}; use crate::crypto::*; use super::*; #[derive(Serialize, Deserialize, Debug, Clone)] pub struct AteGroup { pub name: String, pub roles: Vec<AteGroupRole>, pub broker_read: Option<PrivateEncryptKey>, pub broker_write: O...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/session/session_type.rs
lib/src/session/session_type.rs
use super::*; use crate::crypto::*; use serde::*; #[derive(Serialize, Deserialize, Clone, Debug)] pub enum AteSessionType { User(AteSessionUser), Sudo(AteSessionSudo), Group(AteSessionGroup), Nothing } impl AteSession for AteSessionType { fn role<'a>(&'a self, purpose: &AteRolePurpose) -> Option<&...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/session/role_purpose.rs
lib/src/session/role_purpose.rs
#[allow(unused_imports)] use serde::{de::DeserializeOwned, Deserialize, Serialize}; #[derive(Debug, Serialize, Deserialize, Clone, Hash, PartialEq, Eq, PartialOrd, Ord)] pub enum AteRolePurpose { Owner, Personal, Delegate, Contributor, Observer, Finance, WebServer, EdgeCompute, Othe...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/session/session_inner.rs
lib/src/session/session_inner.rs
use super::*; use crate::crypto::*; use serde::*; use once_cell::sync::Lazy; pub(super) static EMPTY_SESSION_USER: Lazy<AteSessionUser> = Lazy::new(|| AteSessionUser::new()); #[derive(Serialize, Deserialize, Debug, Clone)] pub enum AteSessionInner { User(AteSessionUser), Sudo(AteSessionSudo), Nothing...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/session/mod.rs
lib/src/session/mod.rs
pub mod group; pub mod group_role; pub mod role_purpose; pub mod session_group; pub mod session_inner; pub mod session_property; pub mod session_sudo; pub mod session_trait; pub mod session_type; pub mod session_user; pub use group::*; pub use group_role::*; pub use role_purpose::*; pub use session_group::*; pub use s...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/session/session_group.rs
lib/src/session/session_group.rs
#[allow(unused_imports)] use serde::{de::DeserializeOwned, Deserialize, Serialize}; use std::ops::Deref; use std::ops::DerefMut; use crate::crypto::*; use super::*; /// Sudo sessions are elevated permissions used to carry out /// high priveledge actions /// /// Sessions are never cached and only exist in memory for ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/session/session_trait.rs
lib/src/session/session_trait.rs
#[allow(unused_imports)] use serde::{de::DeserializeOwned, Deserialize, Serialize}; use super::session_sudo::*; use super::session_user::*; use super::AteGroupRole; use super::AteRolePurpose; use super::AteSessionGroup; use super::AteSessionInner; use super::AteSessionProperty; use super::AteSessionType; use crate::cr...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/session/session_sudo.rs
lib/src/session/session_sudo.rs
#[allow(unused_imports)] use serde::{de::DeserializeOwned, Deserialize, Serialize}; use std::ops::Deref; use std::ops::DerefMut; use crate::crypto::*; use super::*; /// Sudo sessions are elevated permissions used to carry out /// high priveledge actions /// /// Sessions are never cached and only exist in memory for ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/trust/tests.rs
lib/src/trust/tests.rs
#![cfg(test)] use bytes::Bytes; use std::sync::Arc; use std::time::Duration; #[allow(unused_imports)] use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use crate::chain::*; use crate::compact::*; use crate::conf::*; use crate::crypto::*; use crate::error::*; use crate::event::*; use crate::heade...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/trust/header.rs
lib/src/trust/header.rs
use serde::*; #[allow(unused_imports)] use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use crate::time::ChainTimestamp; #[derive(Debug, Clone, Default, Serialize, Deserialize)] pub struct ChainHeader { pub cut_off: ChainTimestamp, }
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/trust/chain_ref.rs
lib/src/trust/chain_ref.rs
use serde::{Deserialize, Serialize}; #[allow(unused_imports)] use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use url::Url; use super::ChainKey; /// Unique reference to a particular chain-of-trust. The design must /// partition their data space into seperate chains to improve scalability /// ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/trust/chain_of_trust.rs
lib/src/trust/chain_of_trust.rs
use std::sync::Arc; use std::sync::Mutex as StdMutex; #[allow(unused_imports)] use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use bytes::Bytes; use crate::crypto::AteHash; use crate::comms::Metrics; use crate::error::*; use crate::event::*; use crate::header::*; use crate::index::*; use crate...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/trust/mod.rs
lib/src/trust/mod.rs
pub mod chain_of_trust; pub mod chain_ref; pub mod header; pub mod load_result; pub mod tests; pub mod timeline; #[allow(unused_imports)] #[cfg(test)] pub(crate) use tests::*; pub(crate) use chain_of_trust::*; pub(crate) use timeline::*; pub use chain_ref::*; pub use header::*; pub use load_result::*; pub use ate_c...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/trust/timeline.rs
lib/src/trust/timeline.rs
use btreemultimap::BTreeMultiMap; #[allow(unused_imports)] use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use crate::compact::*; use crate::event::*; use crate::header::*; use crate::index::*; use crate::meta::*; use crate::time::*; pub(crate) struct ChainTimeline { pub(crate) history: B...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/trust/load_result.rs
lib/src/trust/load_result.rs
use crate::index::*; use crate::{event::*, redo::LogLookup}; #[allow(unused_imports)] use tracing::{debug, error, info, instrument, span, trace, warn, Level}; #[derive(Debug, Clone)] pub struct LoadStrongResult { #[allow(dead_code)] pub(crate) lookup: LogLookup, pub header: EventHeaderRaw, pub data: Ev...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/compact/compact_state.rs
lib/src/compact/compact_state.rs
use std::sync::Arc; use std::sync::Mutex; use std::time::Duration; use std::time::Instant; use tokio::select; use tokio::sync::watch; #[allow(unused_imports)] use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use super::CompactMode; const GROWTH_FACTOR_IGNORE_SMALLER_THAN_SIZE: u64 = 2097152; ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/compact/event_compactor.rs
lib/src/compact/event_compactor.rs
#[allow(unused_imports)] use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use crate::event::*; #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] pub enum EventRelevance { ForceKeep, // Force the event to be kept Keep, // This event should be kept Abstain, // Do n...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/compact/tests.rs
lib/src/compact/tests.rs
#![cfg(test)] use std::time::Duration; use std::time::Instant; use crate::engine::sleep; use crate::engine::timeout; use crate::engine::TaskEngine; use crate::error::*; use super::*; #[tokio::main(flavor = "current_thread")] #[test] async fn test_compact_state_machine() -> Result<(), AteError> { crate::utils::bo...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/compact/indecisive_compactor.rs
lib/src/compact/indecisive_compactor.rs
use crate::event::*; use super::*; #[derive(Default, Clone)] pub struct IndecisiveCompactor {} impl EventCompactor for IndecisiveCompactor { fn clone_compactor(&self) -> Option<Box<dyn EventCompactor>> { Some(Box::new(self.clone())) } fn relevance(&self, _: &EventHeader) -> EventRelevance { ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/compact/compact_mode.rs
lib/src/compact/compact_mode.rs
use std::time::Duration; /// # Compaction State Machine /// /// State machine that will trigger a compaction only when a particular set /// of states has been reached. // Specifies when a compaction event on a chain will occur. #[derive(Debug, Clone, Copy, PartialEq)] pub enum CompactMode { // Compaction will nev...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/compact/remove_duplicates.rs
lib/src/compact/remove_duplicates.rs
use fxhash::FxHashSet; use crate::crypto::AteHash; use crate::event::*; use crate::{header::*, meta::MetaAuthorization}; use super::*; #[derive(Debug, Clone, Hash, Eq, PartialEq)] pub struct UniqueEvent { key: PrimaryKey, auth: Option<MetaAuthorization>, } #[derive(Default, Clone)] pub struct RemoveDuplicat...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/compact/tombstone_compactor.rs
lib/src/compact/tombstone_compactor.rs
use fxhash::FxHashSet; use crate::crypto::AteHash; use crate::event::*; use crate::header::*; use crate::meta::*; use super::*; #[derive(Default, Clone)] pub struct TombstoneCompactor { ignored: FxHashSet<AteHash>, tombstoned: FxHashSet<PrimaryKey>, } impl EventCompactor for TombstoneCompactor { fn clon...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/compact/cut_off_compactor.rs
lib/src/compact/cut_off_compactor.rs
use crate::event::*; use super::*; use crate::time::ChainTimestamp; #[derive(Default, Clone)] pub struct CutOffCompactor { pub cut_off: ChainTimestamp, } impl CutOffCompactor { pub fn new(after: ChainTimestamp) -> CutOffCompactor { CutOffCompactor { cut_off: after } } } impl EventCompactor for C...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/compact/sig_compactor.rs
lib/src/compact/sig_compactor.rs
use crate::crypto::*; use crate::event::*; use fxhash::FxHashSet; #[allow(unused_imports)] use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use super::*; #[derive(Default, Clone)] pub struct SignatureCompactor { sigs: FxHashSet<AteHash>, sigs_already: FxHashSet<AteHash>, sign_with:...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/compact/mod.rs
lib/src/compact/mod.rs
pub mod compact_mode; pub mod compact_state; pub mod cut_off_compactor; pub mod event_compactor; pub mod indecisive_compactor; pub mod public_key_compactor; pub mod remove_duplicates; pub mod sig_compactor; mod tests; pub mod tombstone_compactor; pub(crate) use compact_state::*; pub use compact_mode::*; pub use cut_o...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/compact/public_key_compactor.rs
lib/src/compact/public_key_compactor.rs
use crate::crypto::*; use crate::event::*; use fxhash::FxHashSet; #[allow(unused_imports)] use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use super::*; #[derive(Default, Clone)] pub struct PublicKeyCompactor { sign_with: FxHashSet<AteHash>, } impl PublicKeyCompactor { pub fn new() -...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/dio/foreign.rs
lib/src/dio/foreign.rs
use fxhash::FxHashMap; use crate::header::*; use serde::*; /// Rerepresents a reference to structured data that exists in another /// chain-of-trust /// #[derive(Debug, Serialize, Deserialize, Clone)] pub struct DaoForeign { map: FxHashMap<String, PrimaryKey>, } impl DaoForeign { pub fn new() -> DaoForeign {...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/dio/test.rs
lib/src/dio/test.rs
#![allow(unused_imports)] use serde::Deserialize; use serde::{de::DeserializeOwned, Serialize}; use std::convert::*; use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use crate::crypto::*; use crate::dio::*; use crate::prelude::*; #[cfg(test)] #[derive(Serialize, Deserialize, Debug, Clone)] pub...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/dio/vec.rs
lib/src/dio/vec.rs
#![allow(unused_imports)] use error_chain::bail; use std::ops::Deref; use std::marker::PhantomData; use std::sync::{Arc, Weak}; use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use tracing_futures::Instrument; use super::dio::DioWeak; use super::dio_mut::DioMutWeak; use crate::dio::dao::*; use ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/dio/row.rs
lib/src/dio/row.rs
#![allow(unused_imports)] use error_chain::bail; use fxhash::FxHashSet; use tracing::{debug, warn, error}; use bytes::Bytes; use serde::{de::DeserializeOwned, Serialize}; use std::ops::{Deref, DerefMut}; use std::sync::Arc; use std::sync::{Mutex, MutexGuard}; use crate::crypto::{EncryptedPrivateKey, PrivateSignKey}; ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/dio/map.rs
lib/src/dio/map.rs
#![allow(unused_imports)] use error_chain::bail; use fxhash::FxHashMap; use std::marker::PhantomData; use std::sync::{Arc, Weak}; use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use tracing_futures::Instrument; use super::dio::DioWeak; use super::dio_mut::DioMutWeak; use super::vec::DaoVecStat...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/dio/mod.rs
lib/src/dio/mod.rs
pub(crate) mod bus; pub(crate) mod child; pub(crate) mod dao; pub(crate) mod dao_mut; pub(crate) mod dio; pub(crate) mod dio_mut; pub(crate) mod foreign; pub(crate) mod map; pub(crate) mod row; pub(crate) mod test; pub(crate) mod vec; pub(crate) mod weak; pub use super::dio::dao_mut::DaoAuthGuard; pub use super::dio::...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/dio/dao.rs
lib/src/dio/dao.rs
#![allow(unused_imports)] use fxhash::FxHashSet; use tracing::{debug, warn}; use bytes::Bytes; use serde::{de::DeserializeOwned, Serialize}; use std::ops::{Deref, DerefMut}; use std::sync::{Arc, Weak}; use std::sync::{Mutex, MutexGuard}; use crate::crypto::{EncryptedPrivateKey, PrivateSignKey}; use crate::{ crypt...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/dio/child.rs
lib/src/dio/child.rs
#![allow(unused_imports)] use error_chain::bail; use std::marker::PhantomData; use std::sync::{Arc, Weak}; use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use tracing_futures::Instrument; use super::dio::DioWeak; use super::dio_mut::DioMutWeak; use super::vec::DaoVecState as DaoChildState; use...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/dio/dio.rs
lib/src/dio/dio.rs
#![allow(unused_imports)] use crate::prelude::*; use error_chain::bail; use fxhash::FxHashMap; use fxhash::FxHashSet; use multimap::MultiMap; use serde::Deserialize; use serde::{de::DeserializeOwned, de::Deserializer, Serialize, Serializer}; use std::cell::RefCell; use std::ops::Deref; use std::ops::DerefMut; use std::...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/dio/dio_mut.rs
lib/src/dio/dio_mut.rs
#![allow(unused_imports)] use crate::prelude::*; use error_chain::bail; use fxhash::FxHashMap; use fxhash::FxHashSet; use multimap::MultiMap; use serde::Deserialize; use serde::{de::DeserializeOwned, de::Deserializer, Serialize, Serializer}; use std::cell::RefCell; use std::ops::Deref; use std::rc::Rc; use std::sync::M...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
true
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/dio/bus.rs
lib/src/dio/bus.rs
use error_chain::bail; use serde::{de::DeserializeOwned, Serialize}; use std::marker::PhantomData; use std::sync::Arc; use std::ops::Deref; use tokio::sync::mpsc; #[allow(unused_imports)] use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use std::fmt; use super::dao::*; use super::dao_mut::*; us...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/dio/weak.rs
lib/src/dio/weak.rs
#![allow(unused_imports)] use error_chain::bail; use std::marker::PhantomData; use std::sync::{Arc, Weak}; use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use tracing_futures::Instrument; use super::dio::DioWeak; use super::dio_mut::DioMutWeak; use crate::dio::dao::*; use crate::dio::*; use cr...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/dio/dao_mut.rs
lib/src/dio/dao_mut.rs
#![allow(unused_imports)] use async_trait::async_trait; use fxhash::FxHashSet; use tracing::{debug, error, info, trace, warn}; use bytes::Bytes; use serde::{de::DeserializeOwned, Serialize}; use std::ops::{Deref, DerefMut}; use std::sync::{Arc, Weak}; use std::sync::{Mutex, MutexGuard}; use crate::crypto::{EncryptedP...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/mesh/test.rs
lib/src/mesh/test.rs
#![allow(unused_imports)] use std::sync::Arc; use tracing::{debug, error, info}; use serde::{Deserialize, Serialize}; use crate::error::*; #[cfg(feature = "enable_server")] use crate::mesh::MeshRoot; use crate::prelude::*; #[derive(Serialize, Deserialize, Debug, Clone, Default)] struct TestData { pub data: u128,...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/mesh/lock_request.rs
lib/src/mesh/lock_request.rs
use crate::engine::timeout; use async_trait::async_trait; use fxhash::FxHashMap; use std::ops::Rem; use std::sync::Mutex as StdMutex; use std::sync::RwLock as StdRwLock; use std::time::Duration; use std::time::Instant; use std::{sync::Arc, sync::Weak}; use tokio::sync::broadcast; use tokio::sync::watch; use tokio::sync...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/mesh/session.rs
lib/src/mesh/session.rs
use crate::engine::timeout; use async_trait::async_trait; use error_chain::bail; use fxhash::FxHashMap; use std::net::SocketAddr; use std::ops::Rem; use std::sync::Mutex as StdMutex; use std::sync::RwLock as StdRwLock; use std::time::Duration; use std::time::Instant; use std::{sync::Arc, sync::Weak}; use tokio::select;...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/mesh/redirect.rs
lib/src/mesh/redirect.rs
use async_trait::async_trait; use error_chain::bail; use serde::{de::DeserializeOwned, Deserialize, Serialize}; use std::marker::PhantomData; use std::net::SocketAddr; use tokio::sync::broadcast; use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use tracing_futures::{Instrument, WithSubscriber}; ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/mesh/core.rs
lib/src/mesh/core.rs
use crate::{header::PrimaryKey, meta::Metadata, pipe::EventPipe}; use async_trait::async_trait; use bytes::Bytes; use error_chain::bail; use serde::{Deserialize, Serialize}; use std::ops::*; use std::{collections::BTreeMap, sync::Arc}; use tokio::sync::mpsc; use tracing::{debug, error, info, instrument, span, trace, wa...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/mesh/recoverable_session_pipe.rs
lib/src/mesh/recoverable_session_pipe.rs
use crate::engine::timeout; use async_trait::async_trait; use error_chain::bail; use fxhash::FxHashMap; use std::ops::Deref; use std::ops::DerefMut; use std::ops::Rem; use std::sync::Mutex as StdMutex; use std::sync::RwLock as StdRwLock; use std::time::Duration; use std::time::Instant; use std::{sync::Arc, sync::Weak};...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/mesh/client.rs
lib/src/mesh/client.rs
use crate::{header::PrimaryKey, pipe::EventPipe}; use async_trait::async_trait; use error_chain::bail; use fxhash::FxHashMap; use std::sync::Weak; use std::time::Duration; use std::{collections::hash_map::Entry, sync::Arc}; use tokio::sync::Mutex; use tracing::{debug, error, info, instrument, span, trace, warn, Level};...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/mesh/registry.rs
lib/src/mesh/registry.rs
#![allow(unused_imports)] use async_trait::async_trait; use error_chain::bail; use fxhash::FxHashMap; use once_cell::sync::Lazy; use derivative::*; use serde::{de::DeserializeOwned, Deserialize, Serialize}; use std::net::Ipv4Addr; use std::net::Ipv6Addr; use std::net::SocketAddr; use std::net::ToSocketAddrs; use std::o...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/mesh/mod.rs
lib/src/mesh/mod.rs
#![cfg_attr(debug_assertions, allow(dead_code, unused_imports))] #![allow(unused_imports)] use tracing::trace; use tracing::{debug, error, info}; mod active_session_pipe; #[cfg(feature = "enable_client")] mod client; mod core; mod lock_request; mod msg; mod recoverable_session_pipe; #[cfg(feature = "enable_server")] m...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/mesh/msg.rs
lib/src/mesh/msg.rs
use async_trait::async_trait; use bytes::Bytes; use serde::{Deserialize, Serialize}; use std::sync::Arc; use crate::chain::Chain; use crate::chain::ChainKey; use crate::crypto::AteHash; use crate::crypto::PublicSignKey; use crate::error::*; use crate::event::*; use crate::redo::LogLookup; use crate::header::PrimaryKey...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/mesh/server.rs
lib/src/mesh/server.rs
use crate::{header::PrimaryKey, pipe::EventPipe}; use async_trait::async_trait; use error_chain::bail; use fxhash::FxHashMap; use fxhash::FxHashSet; use serde::de::DeserializeOwned; use serde::{Deserialize, Serialize}; use std::future::Future; use std::net::SocketAddr; use std::sync::Mutex as StdMutex; use std::sync::W...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/mesh/active_session_pipe.rs
lib/src/mesh/active_session_pipe.rs
use crate::engine::timeout; use async_trait::async_trait; use error_chain::bail; use fxhash::FxHashMap; use std::ops::Rem; use std::sync::Mutex as StdMutex; use std::sync::RwLock as StdRwLock; use std::time::Duration; use std::time::Instant; use std::{sync::Arc, sync::Weak}; use tokio::sync::broadcast; use tokio::sync:...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/conf/tests.rs
lib/src/conf/tests.rs
#![cfg(test)] #[cfg(feature = "enable_dns")] use std::{net::IpAddr, str::FromStr}; #[allow(unused_imports)] use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use crate::mesh::Registry; use super::*; pub(crate) fn mock_test_config() -> ConfAte { #[allow(unused_mut)] let mut ret = ConfAt...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/conf/mesh_address.rs
lib/src/conf/mesh_address.rs
use serde::{Deserialize, Serialize}; #[cfg(feature = "enable_dns")] use std::net::IpAddr; #[allow(unused_imports)] use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use crate::crypto::AteHash; /// Represents a target node within a mesh #[derive(Serialize, Deserialize, Debug, Clone, Hash, Partia...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/conf/mesh.rs
lib/src/conf/mesh.rs
#![allow(unused_imports)] use error_chain::bail; use std::iter::Iterator; use std::net::IpAddr; use std::time::Duration; use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use crate::comms::CertificateValidation; use crate::conf::ConfAte; use crate::crypto::KeySize; use crate::mesh::Registry; use...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/conf/chain_builder.rs
lib/src/conf/chain_builder.rs
use std::sync::Arc; use std::sync::Mutex as StdMutex; #[allow(unused_imports)] use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use crate::anti_replay::AntiReplayPlugin; use crate::chain::Chain; use crate::comms::Metrics; use crate::comms::NodeId; use crate::comms::Throttle; use crate::compact:...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/conf/mod.rs
lib/src/conf/mod.rs
pub mod chain_builder; pub mod conf_ate; pub mod configured_for; pub mod mesh; pub mod mesh_address; pub mod tests; pub use chain_builder::*; pub use conf_ate::*; pub use configured_for::*; pub use mesh::*; pub use mesh_address::*;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/conf/conf_ate.rs
lib/src/conf/conf_ate.rs
use std::time::Duration; #[allow(unused_imports)] use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use crate::compact::CompactMode; use crate::mesh::BackupMode; use crate::mesh::RecoveryMode; use crate::spec::*; use super::*; /// Configuration settings for the ATE datastore /// #[derive(Debug...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/conf/configured_for.rs
lib/src/conf/configured_for.rs
use crate::spec::*; #[allow(unused_imports)] use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use super::*; /// Determines what optimizes and defaults ATE selects based of a particular /// group of usecases #[allow(dead_code)] #[derive(Debug, Clone, Copy, PartialEq)] pub enum ConfiguredFor { ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/tree/linter.rs
lib/src/tree/linter.rs
use error_chain::bail; use std::sync::Arc; #[allow(unused_imports)] use tracing::{debug, error, info, warn}; use crate::error::*; use crate::lint::*; use crate::meta::*; use crate::session::*; use crate::signature::*; use crate::transaction::*; use super::*; impl EventMetadataLinter for TreeAuthorityPlugin { fn ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/tree/sink.rs
lib/src/tree/sink.rs
use std::sync::Arc; #[allow(unused_imports)] use tracing::{debug, error, info, warn}; use crate::error::*; use crate::event::*; use crate::meta::*; use crate::sink::*; use crate::transaction::*; use super::*; impl EventSink for TreeAuthorityPlugin { fn feed( &mut self, header: &EventHeader, ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/tree/mod.rs
lib/src/tree/mod.rs
pub mod compute; pub mod generate_encrypt_key; pub mod get_encrypt_key; pub mod linter; pub mod plugin; pub mod sink; pub mod transformer; pub mod validator; pub use generate_encrypt_key::*; pub use get_encrypt_key::*; pub use linter::*; pub use plugin::*; pub use sink::*; pub use transformer::*; pub use validator::*;...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/tree/generate_encrypt_key.rs
lib/src/tree/generate_encrypt_key.rs
#[allow(unused_imports)] use tracing::{debug, error, info, warn}; use crate::crypto::*; use crate::error::*; use crate::meta::*; use crate::session::*; use super::*; impl TreeAuthorityPlugin { pub(super) fn generate_encrypt_key( &self, auth: &ReadOption, session: &'_ dyn AteSession, )...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false