Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11726258
kernel.rs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
878 B
Referenced Files
None
Subscribers
None
kernel.rs
View Options
// -------------------------------------------------------------
// Alkane :: Server :: Kernel
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// Project: Nasqueron
// License: BSD-2-Clause
// -------------------------------------------------------------
use
rocket
::
ignite
;
use
rocket_codegen
::
routes
;
use
crate
::
config
::
AlkaneConfig
;
use
crate
::
server
::
requests
::
*
;
// -------------------------------------------------------------
// Server entry point
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
pub
fn
run
(
config
:
AlkaneConfig
,
mounting_point
:
&
str
)
{
let
routes
=
routes
!
[
// Monitoring
status
,
// Alkane API
init
,
update
,
deploy
,
is_present
,
];
ignite
()
.
manage
(
config
)
.
mount
(
mounting_point
,
routes
)
.
launch
();
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Sep 19, 02:08 (14 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2991161
Default Alt Text
kernel.rs (878 B)
Attached To
Mode
rALK Alkane
Attached
Detach File
Event Timeline
Log In to Comment