-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
71 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,20 @@ | ||
pub mod predule; | ||
|
||
// 기본 데이터베이스 이름 | ||
pub const DEFAULT_DATABASE_NAME: &str = "rrdb"; | ||
|
||
// 기본 설정파일 이름. | ||
pub const DEFAULT_CONFIG_FILENAME: &str = "rrdb.config"; | ||
|
||
// 기본 Data 디렉터리 이름 | ||
pub const DEFAULT_DATA_DIRNAME: &str = "data"; | ||
|
||
// 운영체제별 기본 저장 경로를 반환합니다. | ||
#[cfg(target_os = "linux")] | ||
pub const DEFAULT_CONFIG_BASEPATH: &str = "/var/lib/rrdb"; | ||
|
||
#[cfg(target_os = "windows")] | ||
pub const DEFAULT_CONFIG_BASEPATH: &str = "C:\\Program Files\\rrdb"; | ||
|
||
// #[cfg(target_os = "macos")] | ||
// TODO: MacOS 경로 추가 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Deserialize, Serialize, Debug, Clone)] | ||
pub struct GlobalConfig {} | ||
pub struct GlobalConfig { | ||
pub port: u32, | ||
pub host: String, | ||
pub data_directory: String, | ||
} | ||
|
||
#[allow(clippy::derivable_impls)] | ||
impl std::default::Default for GlobalConfig { | ||
fn default() -> Self { | ||
Self {} | ||
Self { | ||
port: 55555, | ||
host: "0.0.0.0".to_string(), | ||
data_directory: "data".to_string(), | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
pub mod ast; | ||
pub mod command; | ||
pub mod config; | ||
pub mod constants; | ||
pub mod errors; | ||
pub mod executor; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
pub mod collection; | ||
pub mod path; | ||
pub mod float; | ||
pub mod macos; | ||
pub mod predule; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
pub use super::path::*; | ||
pub use super::float::*; | ||
pub use super::macos::*; |