ex_golos v0.7.0 Golos

Summary

Functions

See Golos.DatabaseApi.get_replies_by_last_update/4

Called when an application is started

Functions

call(params, opts \\ [])
get_account_count()

See Golos.DatabaseApi.get_account_count/0.

get_account_history(name, from, limit)

See Golos.DatabaseApi.get_account_history/3.

get_account_votes(name)

See Golos.DatabaseApi.get_account_votes/1.

get_accounts(accounts)

See Golos.DatabaseApi.get_accounts/1.

get_active_votes(author, permlink)

See Golos.DatabaseApi.get_active_votes/2.

get_active_witnesses()

See Golos.DatabaseApi.get_active_witnesses/0.

get_block(height)

See Golos.DatabaseApi.get_block/1.

get_block_header(height)

See Golos.DatabaseApi.get_block_header/1.

get_categories(metric, after_category, query)

See Golos.DatabaseApi.get_categories/3.

get_chain_properties()

See Golos.DatabaseApi.get_chain_properties/0.

get_content(author, permlink)

See Golos.DatabaseApi.get_content/2.

get_content_replies(author, permlink)

See Golos.DatabaseApi.get_content_replies/2.

get_conversion_requests()

See Golos.DatabaseApi.get_conversion_requests/0.

get_current_median_history_price()

See Golos.DatabaseApi.get_current_median_history_price/0.

get_discussions_by(metric, query)

See Golos.DatabaseApi.get_discussions_by/2.

get_discussions_by_author_before_date(author, start_permlink, before_date, limit)

See Golos.DatabaseApi.get_discussions_by_author_before_date/4.

get_dynamic_global_properties()

See Golos.DatabaseApi.get_dynamic_global_properties/0.

get_feed_history()

See Golos.DatabaseApi.get_feed_history/0.

get_followers(account, start_follower, follow_type, limit)

See Golos.DatabaseApi.get_followers/4.

get_following(account, start_following, follow_type, limit)

See Golos.DatabaseApi.get_following/4.

get_hardfork_version()

See Golos.DatabaseApi.get_hardfork_version/0.

get_miner_queue()

See Golos.DatabaseApi.get_miner_queue/0.

get_next_scheduled_hardfork()

See Golos.DatabaseApi.get_next_scheduled_hardfork/0.

get_open_orders(name)

See Golos.DatabaseApi.get_open_orders/1.

get_order_book(limit)

See Golos.DatabaseApi.get_order_book/1.

get_owner_history(name)

See Golos.DatabaseApi.get_owner_history/1.

get_replies_by_last_update(author, start_permlink, before_date, limit)

See Golos.DatabaseApi.get_replies_by_last_update/4.

get_state(path)

See Golos.DatabaseApi.get_state/1.

get_witness_count()

See Golos.DatabaseApi.get_witness_count/0.

get_witness_schedule()

See Golos.DatabaseApi.get_witness_schedule/0.

get_witnesses(names)

See Golos.DatabaseApi.get_witnesses/1.

get_witnesses_by_vote(from, limit)

See Golos.DatabaseApi.get_witnesses_by_vote/2.

lookup_account_names(account_names)

See Golos.DatabaseApi.lookup_account_names/1.

lookup_accounts(lower_bound_name, limit)

See Golos.DatabaseApi.lookup_accounts/2.

lookup_witness_accounts(lower_bound_name, limit)

See Golos.DatabaseApi.lookup_witness_accounts/2.

start(type, args)

Called when an application is started.

This function is called when an the application is started using Application.start/2 (and functions on top of that, such as Application.ensure_started/2). This function should start the top-level process of the application (which should be the top supervisor of the application’s supervision tree if the application follows the OTP design principles around supervision).

start_type defines how the application is started:

  • :normal - used if the startup is a normal startup or if the application is distributed and is started on the current node because of a failover from another mode and the application specification key :start_phases is :undefined.
  • {:takeover, node} - used if the application is distributed and is started on the current node because of a failover on the node node.
  • {:failover, node} - used if the application is distributed and is started on the current node because of a failover on node node, and the application specification key :start_phases is not :undefined.

start_args are the arguments passed to the application in the :mod specification key (e.g., mod: {MyApp, [:my_args]}).

This function should either return {:ok, pid} or {:ok, pid, state} if startup is successful. pid should be the PID of the top supervisor. state can be an arbitrary term, and if omitted will default to []; if the application is later stopped, state is passed to the stop/1 callback (see the documentation for the c:stop/1 callback for more information).

use Application provides no default implementation for the start/2 callback.

Callback implementation for Application.start/2.