ephemeral_postgres/
cluster_params.rs1use std::time::Duration;
2
3const POSTGRES_IMAGE_TAG: &str =
4 "17@sha256:2a0d0fe14825b0939f78a8cad5cd4e6aa68bf94d0e5dd96e24b6d23af4315545";
5
6const READINESS_TIMEOUT: Duration = Duration::from_secs(30);
7
8pub struct ClusterParams {
9 pub image_tag: String,
10 pub readiness_timeout: Duration,
11}
12
13impl Default for ClusterParams {
14 fn default() -> Self {
15 Self {
16 image_tag: POSTGRES_IMAGE_TAG.to_owned(),
17 readiness_timeout: READINESS_TIMEOUT,
18 }
19 }
20}