Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56355396
kernel.rs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
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
Sat, Nov 7, 09:04 (1 d, 20 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3928174
Default Alt Text
kernel.rs (878 B)
Attached To
Mode
rALK Alkane
Attached
Detach File
Event Timeline
Log In to Comment