package bonsai

  1. Overview
  2. Docs
A library for building dynamic webapps, using Js_of_ocaml

Install

Dune Dependency

Authors

Maintainers

Sources

v0.15.1.tar.gz
sha256=0c4a714146073f421f1a6179561f836b45d8dc012c743207d3481ea63bef74bf

doc/src/bonsai.protocol/bonsai_protocol.ml.html

Source file bonsai_protocol.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
open! Core
open Bonsai.Private


module Entry = struct
  type t =
    { label : [ `Bonsai of Node_path.t | `Other of string ]
    ; entry_type : string
    ; start_time : float
    ; duration : float
    }
  [@@deriving bin_io, sexp]

  let%expect_test _ =
    print_endline [%bin_digest: t];
    [%expect {| 06de0862e532730a58840545d773281d |}]
  ;;
end

module Message = struct
  type t =
    | Graph_info of Graph_info.t
    | Performance_measure of Entry.t
  [@@deriving bin_io, sexp]

  let%expect_test _ =
    print_endline [%bin_digest: t];
    [%expect {| b17892a0948ebd34a0b716278484df52 |}]
  ;;
end
OCaml

Innovation. Community. Security.