GenWorker v0.0.7 GenWorker.State View Source

Configure worker

Link to this section Summary

Functions

Init state structure and validate

Link to this section Types

Link to this type

options()

View Source
options() :: [
  run_at: run_at_options() | %{required(binary() | atom()) => run_at_options()},
  run_each: run_each_options()
]
Link to this type

run_at_options()

View Source
run_at_options() :: [
  date: Timex.Types.date(),
  year: Timex.Types.year(),
  month: Timex.Types.month(),
  day: Timex.Types.day(),
  hour: Timex.Types.hour(),
  minute: Timex.Types.minute(),
  second: Timex.Types.second(),
  microsecond: Timex.Types.microsecond()
]
Link to this type

t()

View Source
t() :: %GenWorker.State{
  caller: atom(),
  last_called_at: DateTime.t(),
  run_at: run_at_options(),
  run_each: run_each_options(),
  timezone: Timex.TimezoneInfo.t(),
  worker_args: term()
}

Link to this section Functions

Init state structure and validate