leo_misc¶
leo_misc is miscellaneous utilities.
References
Description¶
leo_misc is miscellaneous utilities
Function Index¶
any_to_binary/1 | Convert value from any-type to binary. |
binary_tokens/2 | Retrieve tokens from binary-data by delimiter-char. |
get_env/2 | Returns the value of the configuration parameter Par application from ETS. |
get_env/3 | Returns the value of the configuration parameter Par application from ETS. |
get_value/2 | Retrieve a value from prop-lists. |
get_value/3 | Retrieve a value from prop-lists. |
init_env/0 | Initialize table of env. |
node_existence/1 | check a node existence. |
node_existence/2 | check a node existence. |
set_env/3 | Sets the value of the configuration parameter Par for Application to ETS. |
Function Details¶
binary_tokens/2¶
binary_tokens(Bin, Delimiter) -> Tokens::[binary]
- Bin = binary()
- Delimiter = binary()
Retrieve tokens from binary-data by delimiter-char
get_env/2¶
get_env(AppName, Key) -> {ok, any()} | undefined
- AppName = atom()
- Key = any()
Returns the value of the configuration parameter Par application from ETS
get_env/3¶
get_env(AppName, Key, Default) -> {ok, any()} | undefined
- AppName = atom()
- Key = any()
- Default = any()
Returns the value of the configuration parameter Par application from ETS
get_value/2¶
get_value(Key, Props) -> undefined | any()
- Key = any()
- Props = [tuple()]
Retrieve a value from prop-lists
get_value/3¶
get_value(Key, Props, Default) -> undefined | any()
- Key = any()
- Props = [tuple()]
- Default = any()
Retrieve a value from prop-lists
node_existence/1¶
node_existence(Node) -> Existence::boolean()
- Node = atom()
check a node existence.
node_existence/2¶
node_existence(Node, Timeout) -> Existence::boolean()
- Node = atom()
- Timeout = pos_integer()
check a node existence.
set_env/3¶
set_env(AppName, Key, Val) -> ok
- AppName = atom()
- Key = any()
- Val = any()
Sets the value of the configuration parameter Par for Application to ETS