This commit is contained in:
houseme
2025-06-30 22:47:36 +08:00
parent 57c8c76e58
commit 68090d1c35
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ pub struct ARN {
pub region: String, pub region: String,
// Service types, such as "sqs", "sns", "lambda", etc. This defaults to "sqs" to match the Go example. // Service types, such as "sqs", "sns", "lambda", etc. This defaults to "sqs" to match the Go example.
pub service: String, pub service: String,
// Partitions such as "aws", "aws-cn", or customizations such as "rustfs","rustfs", etc. // Partitions such as "aws", "aws-cn", or customizations such as "rustfs", etc.
pub partition: String, pub partition: String,
} }
+3 -3
View File
@@ -1,7 +1,7 @@
//! RustFS Notify - A flexible and extensible event notification system for object storage. //! RustFS Notify - A flexible and extensible event notification system for object storage.
//! //!
//! This library provides a Rust implementation of a storage bucket notification system, //! This library provides a Rust implementation of a storage bucket notification system.
//! similar to RustFS's notification system. It supports sending events to various targets //! It supports sending events to various targets
//! (like Webhook and MQTT) and includes features like event persistence and retry on failure. //! (like Webhook and MQTT) and includes features like event persistence and retry on failure.
pub mod arn; pub mod arn;
@@ -26,7 +26,7 @@ pub use rules::BucketNotificationConfig;
use std::io::IsTerminal; use std::io::IsTerminal;
pub use target::Target; pub use target::Target;
use tracing_subscriber::{EnvFilter, fmt, prelude::*, util::SubscriberInitExt}; use tracing_subscriber::{fmt, prelude::*, util::SubscriberInitExt, EnvFilter};
/// Initialize the tracing log system /// Initialize the tracing log system
/// ///
+1 -1
View File
@@ -1,5 +1,5 @@
use super::pattern; use super::pattern;
use crate::arn::{ARN, ArnError, TargetIDError}; use crate::arn::{ArnError, TargetIDError, ARN};
use crate::event::EventName; use crate::event::EventName;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use std::collections::HashSet; use std::collections::HashSet;