HomeDevCentral

Provide a kernel module

Description

Provide a kernel module

Summary:
Allow to start the application with a PostgreSQL connection as managed state.

The configuration can be customized, with a default one reading parameters
from environment or an .env file.

Test Plan:
This allows to start application as easily as:

extern crate env_logger;
extern crate limiting_factor;

mod requests;

use limiting_factor::kernel::DefaultApplication;
use requests::*;

fn main() {
    env_logger::init();

    let routes = routes![
        status,
        favicon,
        users::register,
        users::get_player,
    ];

    DefaultApplication::start_application(routes);
}

Reviewers: dereckson

Reviewed By: dereckson

Differential Revision: https://devcentral.nasqueron.org/D1665

Details

Provenance
derecksonAuthored on Sep 6 2018, 12:31
derecksonPushed on Sep 6 2018, 13:35
Reviewer
dereckson
Differential Revision
D1665: Provide a kernel module
Parents
rLF69021c89004e: Provide a config module
Branches
Unknown
Tags
Unknown