Module leo_misc

leo_misc is miscellaneous utilities.

References

Description

leo_misc is miscellaneous utilities

Function Index

any_to_binary/1Convert value from any-type to binary.
binary_tokens/2Retrieve tokens from binary-data by delimiter-char.
get_env/2Returns the value of the configuration parameter Par application from ETS.
get_env/3Returns the value of the configuration parameter Par application from ETS.
get_value/2Retrieve a value from prop-lists.
get_value/3Retrieve a value from prop-lists.
init_env/0Initialize table of env.
node_existence/1check a node existence.
node_existence/2check a node existence.
set_env/3Sets the value of the configuration parameter Par for Application to ETS.
startup_notification/0Send "start-up complete" notification to systemd.
uuid/1Returns a random binary generated by UUID v4.

Function Details

any_to_binary/1

any_to_binary(V) -> binary()

Convert value from any-type to binary

binary_tokens/2

binary_tokens(Bin, Delimiter) -> Tokens::[binary()]

Retrieve tokens from binary-data by delimiter-char

get_env/2

get_env(AppName, Key) -> {ok, any()} | undefined

Returns the value of the configuration parameter Par application from ETS

get_env/3

get_env(AppName, Key, Default) -> {ok, any()} | undefined

Returns the value of the configuration parameter Par application from ETS

get_value/2

get_value(Key, Props) -> undefined | any()

Retrieve a value from prop-lists

get_value/3

get_value(Key, Props, Default) -> undefined | any()

Retrieve a value from prop-lists

init_env/0

init_env() -> ok

Initialize table of env

node_existence/1

node_existence(Node) -> Existence::boolean()

check a node existence.

node_existence/2

node_existence(Node, Timeout) -> Existence::boolean()

check a node existence.

set_env/3

set_env(AppName, Key, Val) -> ok

Sets the value of the configuration parameter Par for Application to ETS

startup_notification/0

startup_notification() -> ok

Send "start-up complete" notification to systemd

uuid/1

uuid(Version) -> binary() | unsupported

Returns a random binary generated by UUID v4.


Generated by EDoc