package atacama

  1. Overview
  2. Docs

The interface of an Atacama Handler. It is worth noting that you don't have to explicitly implement this interface, which allows your modules to include _more_ than is specified here.

type state
type error
val pp_err : Format.formatter -> error -> unit
val handle_close : Connection.t -> state -> unit
val handle_connection : Connection.t -> state -> (state, error) handler_result
val handle_error : error -> Connection.t -> state -> (state, error) handler_result
val handle_shutdown : Connection.t -> state -> (state, error) handler_result
val handle_timeout : Connection.t -> state -> (state, error) handler_result
val handle_message : Riot.Message.t -> Connection.t -> state -> (state, error) handler_result
OCaml

Innovation. Community. Security.