package ocsigen-start

Build not yet checked
  1. Overview
  2. Docs
Higher-level library for developing Web and mobile applications with users, registration, notifications, etc

Install

dune-project
 Dependency

Authors

Maintainers

Sources

9.0.0.tar.gz
md5=dfd00a648f0d5f64fcfc893427afc996
sha512=d7c77a9f9b617291ea8c49f4e77fcad8187c39e41d6cb2942ad1c8f45ba620ac261d25a3e75c1b2ce1fd429dad009abb45fab670542e722ab336dc681b99330a

doc/ocsigen-start.server/Os/Session/Opt/index.html

Module Session.Opt

val connected_fun : ?allow:Types.Group.t list -> ?deny:Types.Group.t list -> ?deny_fun:(Types.User.id option -> 'c Lwt.t) -> ?force_unconnected:bool -> (Types.User.id option -> 'a -> 'b -> 'c Lwt.t) -> 'a -> 'b -> 'c Lwt.t

Same as connected_fun but instead of failing in case the user is not connected, the function given as parameter takes an Types.User.id option for user id.

val connected_rpc : ?allow:Types.Group.t list -> ?deny:Types.Group.t list -> ?deny_fun:(Types.User.id option -> 'b Lwt.t) -> ?force_unconnected:bool -> (Types.User.id option -> 'a -> 'b Lwt.t) -> 'a -> 'b Lwt.t

Same as connected_rpc but instead of failing in case the user is not connected, the function given as parameter takes an Types.User.id option for user id.