Module ecrn_reg

This provides simple pid registration for the server.

Copyright © Erlware, LLC. All Rights Reserved. This file is provided to you under the BSD License; you may not use this file except in compliance with the License. -------------------------------------------------------------------

Behaviours: gen_server.

Description

This provides simple pid registration for the server.

Function Index

get/1 Get a value buy key.
get_all/0 Get all the values.
register/2 Register an arbitrary value with the system, under a set of keys.
start_link/0
stop/0 stop this server.
unregister/1 Remove the value registered under a que or set of keys.

Function Details

get/1

get(Keys::term()) -> {ok, term()} | undefined

Get a value buy key.

get_all/0

get_all() -> [{term(), term()}]

Get all the values.

register/2

register(Keys::term() | [term()], Body::term()) -> ok | {discarded_keys, [term()]}

Register an arbitrary value with the system, under a set of keys

start_link/0

start_link() -> {ok, pid()} | ignore | {error, term()}

stop/0

stop() -> ok

stop this server

unregister/1

unregister(Keys::term() | [term()]) -> ok

Remove the value registered under a que or set of keys


Generated by EDoc