View Source CliexMap.Context (CliexMap v0.2.0)

Summary

Types

@type ast() :: any()
@type binaries() :: [binary()]
@type binary?() :: maybe(binary())
@type color_list() :: [binary() | atom()]
Link to this type

either(success_t, error_t)

View Source
@type either(success_t, error_t) :: {:ok, success_t} | {:error, error_t}
@type line_nb_t() :: non_neg_integer()
@type maybe(t) :: nil | t
@type name_value_pair_t() :: {binary(), any()}
@type numbered_line_t() :: {line_nb_t(), binary()}
@type t() :: %CliexMap.Context{unix_timestamp: maybe(integer()), variables: map()}

Functions

@spec for_now(maybe(integer())) :: t()
Link to this function

format_ts_fn(context, keyword)

View Source
@spec format_ts_fn(t(), binary()) :: binary()
Link to this function

load_variable(context, name)

View Source
@spec load_variable(t(), binary()) :: any()
Link to this function

map_either(either_value, mapper)

View Source
@spec map_either(either(success_t, error_t), (success_t -> transformed_t)) ::
  either(transformed_t, error_t)
when success_t: any(), error_t: any(), transformed_t: any()
Link to this function

store_variable(myself, arg)

View Source
@spec store_variable(t(), name_value_pair_t()) :: t()