mirror of
https://github.com/perstarkse/minne.git
synced 2026-05-26 01:19:43 +02:00
tests for redisclient
This commit is contained in:
@@ -13,10 +13,11 @@ use thiserror::Error;
|
||||
use tracing::info;
|
||||
use uuid::Uuid;
|
||||
|
||||
use crate::redis::client::RedisClient;
|
||||
use crate::redis::client::{RedisClient, RedisClientTrait};
|
||||
|
||||
|
||||
/// Represents metadata and storage information for a file.
|
||||
#[derive(Debug, Clone, Deserialize, Serialize)]
|
||||
#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
|
||||
pub struct FileInfo {
|
||||
pub uuid: Uuid,
|
||||
pub sha256: String,
|
||||
|
||||
@@ -7,6 +7,7 @@ use crate::redis::client::RedisClient;
|
||||
|
||||
use super::{file_info::FileInfo, ingress_object::IngressObject };
|
||||
|
||||
|
||||
/// Struct defining the expected body when ingressing content.
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
pub struct IngressInput {
|
||||
@@ -107,3 +108,4 @@ pub async fn create_ingress_objects(
|
||||
|
||||
Ok(object_list)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user