2019-03-05 11:09:15 -07:00
|
|
|
defprotocol FarmbotCore.AssetWorker do
|
2019-03-25 12:50:34 -06:00
|
|
|
# A process that represents a single database row.
|
|
|
|
|
2018-11-19 12:32:54 -07:00
|
|
|
@doc "List of relational resources that need to be preloaded."
|
|
|
|
def preload(asset)
|
|
|
|
|
2019-04-10 12:56:47 -06:00
|
|
|
@doc "Boolean of if this asset should be restarted, or not."
|
|
|
|
def tracks_changes?(asset)
|
|
|
|
|
2018-11-19 12:32:54 -07:00
|
|
|
@doc "GenServer childspec callback."
|
2018-11-19 15:00:32 -07:00
|
|
|
def start_link(asset, args \\ [])
|
2018-10-29 10:33:52 -06:00
|
|
|
end
|