mirror of
https://github.com/mikedilger/chorus.git
synced 2026-05-03 06:51:42 +00:00
config.data_directory
This commit is contained in:
parent
ee40be7625
commit
304ba8043a
2
sample/.gitignore
vendored
Normal file
2
sample/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
lmdb/
|
||||
event.map
|
||||
@ -1,4 +1,5 @@
|
||||
Config(
|
||||
data_directory: "./sample",
|
||||
ip_address: "127.0.0.1",
|
||||
port: 8080,
|
||||
name: None,
|
||||
|
||||
@ -2,6 +2,7 @@ use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct Config {
|
||||
pub data_directory: String,
|
||||
pub ip_address: String,
|
||||
pub port: u16,
|
||||
pub name: Option<String>,
|
||||
@ -12,6 +13,7 @@ pub struct Config {
|
||||
impl Default for Config {
|
||||
fn default() -> Config {
|
||||
Config {
|
||||
data_directory: "/tmp".to_string(),
|
||||
ip_address: "127.0.0.1".to_string(),
|
||||
port: 80,
|
||||
name: None,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user