GSMLG.Tor (GSMLG.Tor v0.2.3)
Starting a tor server in elixir using Port.
The Tor Project https://www.torproject.org
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Return GenServer state.
Get current config file content
Callback implementation for GenServer.handle_continue/2
.
Callback implementation for GenServer.init/1
.
Start tor server at using config file return by GSMLG.Tor.Config.torrc()
Stop Tor server using system kill
Link to this section Functions
child_spec(init_arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
get_state()
Return GenServer state.
%{port: <port>}
get_torrc()
Get current config file content
handle_continue(atom, state)
Callback implementation for GenServer.handle_continue/2
.
init(init)
Callback implementation for GenServer.init/1
.
start()
Start tor server at using config file return by GSMLG.Tor.Config.torrc()
Start server with
GSMLG.Tor.start()
or add to supervisor tree
{GSMLG.Tor, []}
To start server, libevent must be installed.
start_link(_)
stop()
Stop Tor server using system kill