Rpcsdk.Crawler behaviour (rpcsdk v0.4.10)

Link to this section Summary

Link to this section Callbacks

Link to this callback

handle_crawled(results, key, state)

@callback handle_crawled(
  results :: [term()],
  key :: term(),
  state :: {interval :: integer(), args :: term()}
) :: next_state :: {next_interval :: integer(), args :: term()}
Link to this callback

handle_crawling(item, key, state)

@callback handle_crawling(
  item :: term(),
  key :: term(),
  state :: {interval :: integer(), args :: term()}
) ::
  result :: term()
@callback initialize() :: state :: term()