package syslog-rfc5424

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type _ typ =
  1. | String : string typ
  2. | Bool : bool typ
  3. | Float : float typ
  4. | I64 : int64 typ
  5. | U64 : Uint64.t typ
  6. | U : unit typ
    (*

    Type of a metric type (compatible with Warp10 and flowgger representation).

    *)
type tydef =
  1. | Dyn : 'a typ * 'a Logs.Tag.def -> tydef
    (*

    Existential type for log tag definiton.

    *)
module TS : Stdlib.Set.S with type elt := tydef
val string : string Logs.Tag.def -> tydef
val bool : bool Logs.Tag.def -> tydef
val float : float Logs.Tag.def -> tydef
val i64 : int64 Logs.Tag.def -> tydef
val u : unit Logs.Tag.def -> tydef
val def : 'a typ -> tydef -> 'a Logs.Tag.def option

def typ tydef is Some def is tydef contains a def of type 'a, or None otherwise.

val add : 'a typ -> tydef -> 'a -> Logs.Tag.set -> Logs.Tag.set

add is like Logs.Tag.add but uses [tydef] instead of def.

val find : 'a typ -> tydef -> Logs.Tag.set -> ('a Logs.Tag.def * 'a option) option

find typ tydef set is Some value of requested type and definition if found in set, or None otherwise.