Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val log_src : Logs.src
val get : 'a -> 'b -> Sihl_contract.Http.meth * 'a * 'b
val post : 'a -> 'b -> Sihl_contract.Http.meth * 'a * 'b
val put : 'a -> 'b -> Sihl_contract.Http.meth * 'a * 'b
val delete : 'a -> 'b -> Sihl_contract.Http.meth * 'a * 'b
val any : 'a -> 'b -> Sihl_contract.Http.meth * 'a * 'b
val router :
?scope:string ->
?middlewares:Rock.Middleware.t list ->
Sihl_contract.Http.t list ->
Sihl_contract.Http.router
val apply_middleware_stack :
Rock.Middleware.t list ->
('a * 'b * Rock.Handler.t) ->
'a * 'b * Rock.Handler.t
val router_to_routes :
Sihl_contract.Http.router ->
(Sihl_contract.Http.meth * string * Rock.Handler.t) list
val to_opium_builder :
(Sihl_contract.Http.meth * string * Rock.Handler.t) ->
Opium.App.builder
val routers_to_opium_builders :
Sihl_contract.Http.router list ->
Opium.App.builder list
val config : int option -> config
val schema : (string, int option -> config, config) Conformist.t
val registered_routers : Sihl_contract.Http.router list ref
val start_server : unit -> unit Lwt.t
val start_cmd : Sihl_core.Command.t
val start : unit -> unit Lwt.t
val stop : unit -> unit Lwt.t
val lifecycle : Sihl_core.Container.Lifecycle.t
val register :
?routers:Sihl_contract.Http.router list ->
unit ->
Sihl_core.Container.Service.t