package syslog-rfc5424

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Rfc5424.TagSource

Sourcetype _ 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).

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

    Existential type for log tag definiton.

    *)
Sourcemodule TS : Set.S with type elt := tydef
Sourceval string : string Logs.Tag.def -> tydef
Sourceval bool : bool Logs.Tag.def -> tydef
Sourceval float : float Logs.Tag.def -> tydef
Sourceval i64 : int64 Logs.Tag.def -> tydef
Sourceval u : unit Logs.Tag.def -> tydef
Sourceval 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.

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

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

Sourceval 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.

OCaml

Innovation. Community. Security.