Module oc_tags
Data Types
key()
key() = atom() | binary() | unicode:latin1_charlist()
tags()
tags() = #{key() => value()}
value()
value() = binary() | unicode:latin1_charlist()
Function Index
format_error/1 | |
from_ctx/1 | |
new/0 | |
new/1 | |
new/2 | |
new_ctx/2 | |
put/3 | |
to_map/1 | |
update/2 | |
verify_key/1 | |
verify_value/1 |
Function Details
format_error/1
format_error(X1) -> any()
from_ctx/1
from_ctx(Ctx::ctx:t()) -> tags()
new/0
new() -> tags()
new/1
new(Map::maps:map()) -> tags()
new/2
new(Ctx::ctx:t(), Map::maps:map()) -> ctx:t()
new_ctx/2
new_ctx(Ctx::ctx:t(), Tags::tags()) -> ctx:t()
put/3
put(Key::key(), Value::value(), Tags::tags()) -> {ok, tags()} | {error, any()}
to_map/1
to_map(Tags::tags()) -> maps:map()
update/2
update(Tags::tags(), Map::maps:map()) -> tags()
verify_key/1
verify_key(Key) -> any()
verify_value/1
verify_value(Value) -> any()