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.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

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Return GenServer state.

%{port: <port>}

Get current config file content

Link to this function

handle_continue(atom, state)

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()

Start server with

GSMLG.Tor.start()

or add to supervisor tree

{GSMLG.Tor, []}

To start server, libevent must be installed.

Stop Tor server using system kill