Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: add settings for status service #31

Open
lucab opened this issue Aug 12, 2020 · 0 comments
Open

config: add settings for status service #31

lucab opened this issue Aug 12, 2020 · 0 comments

Comments

@lucab
Copy link
Contributor

lucab commented Aug 12, 2020

This applies to both graph-builder and policy-engine.

The status service needs to configurable via TOML config file. Initial proposal:

#[derive(Deserialize)]
struct FileConfig {
    /// Status service config.
    status: Option<StatusConfig>,
}

#[derive(Deserialize)]
struct StatusConfig {
    /// Address on which the status service will listen,
    pub address: Option<IpAddr>,

    /// Port to which the status service will bind.
    pub port: Option<u16>,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant