farmbot v6.0.0 Farmbot.BotState.Lib.Partition behaviour View Source

Common functionality for parts of the bot state.

Link to this section Summary

Types

Noreply for GenServer.cast or GenServer.info

Reply to a GenServer.call

Stop the Partition

Functions

Dispatches to the bot state tracker

Dispatches to the bot state tracker, and replies with reply

Callbacks

Optional callback for handle_call

Optional callback for handle_cast

Optional callback for handle_info

optional callback called on init

Otional callback for saveing state

Start this Partition GenServer

Link to this section Types

Noreply for GenServer.cast or GenServer.info.

Reply to a GenServer.call.

Stop the Partition.

Link to this section Functions

Dispatches to the bot state tracker.

Dispatches to the bot state tracker, and replies with reply

Link to this section Callbacks

Link to this callback partition_call(term, arg1, arg2) View Source (optional)

Optional callback for handle_call.

Link to this callback partition_cast(term, arg1) View Source (optional)

Optional callback for handle_cast.

Link to this callback partition_info(term, arg1) View Source (optional)

Optional callback for handle_info.

optional callback called on init.

Otional callback for saveing state.

Start this Partition GenServer.