Octogram.Global_variablesThis modules introduces the table of global variables which can is manipulated by jobs.
The possible types of a global variable, when it exists. If it does not, the global variable is assumed to be null.
The description of an update to apply to the table of global variables.
val empty : tmerge old_vars new_vars creates a new set of global variables where the the variables contained in new_vars are added to old_vars, and replace them in case of conflicts. That is, if a variable exists both in old_vars and new_vars, then the value in new_vars is kept.
update vars u applies the update encoded in u to the table of global variables vars. If u.value = None, then the variable u.key is removed from the table.
The table of global variables is used in conjunction with Jingoo’s template to easily customize jobs based on the dynamic state curated by these states.
val tvalue_of_var : var -> Jingoo.Jg_types.tvalueval tvalue_of_vars : t -> Jingoo.Jg_types.tvalueval encoding : t Data_encoding.tval var_encoding : var Data_encoding.tval updates_encoding : update list Data_encoding.t