ForexFactory.Events.Type behaviour (ForexFactory v0.1.5)

Behaviour for all event types

Summary

Types

@type currency() :: ForexFactory.currency()
@type t() :: module()

Callbacks

@callback all() :: [ForexFactory.Event.t()]
Link to this callback

data(currency, keyword)

@callback data(
  currency(),
  keyword()
) :: {:ok, term()} | {:error, term()}
Link to this callback

data!(currency, keyword)

@callback data!(
  currency(),
  keyword()
) :: {:ok, term()} | {:error, term()}
Link to this callback

event(currency)

@callback event(currency()) :: {:ok, ForexFactory.Event.t()} | {:error, term()}
Link to this callback

event!(currency)

@callback event!(currency()) :: ForexFactory.Event.t()

Functions

Link to this macro

defevent(event)

(macro)