barrel_db_sup (barrel_docdb v1.1.1)

View Source

barrel_db_sup - Dynamic supervisor for database processes

Manages individual database server processes using simple_one_for_one strategy for dynamic child management.

Summary

Functions

Initialize the supervisor with simple_one_for_one strategy

Start a new database server

Start the database supervisor

Stop a database server

Functions

init(_)

-spec init([]) -> {ok, {supervisor:sup_flags(), [supervisor:child_spec()]}}.

Initialize the supervisor with simple_one_for_one strategy

start_db(Name, Config)

-spec start_db(binary(), map()) -> {ok, pid()} | {error, term()}.

Start a new database server

start_link()

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

Start the database supervisor

stop_db(Name)

-spec stop_db(binary()) -> ok | {error, term()}.

Stop a database server