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 Sourceoptions() :: [ run_at: run_at_options() | %{required(binary() | atom()) => run_at_options()}, run_each: run_each_options() ]
Link to this type
run_at_options()
View Sourcerun_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 Sourcet() :: %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
Link to this function
init!(options)
View Sourceinit!(options()) :: t() | no_return() | Exception.t()
Init state structure and validate