View Source Statux.Models.TrackerState (Statux v0.1.1)

The internal state of the Tracker. If you are not planning on significantly changing the library, this is probably not of much interest to you.

Link to this section Summary

Link to this section Types

Specs

t() :: %Statux.Models.TrackerState{
  name: (String.t() | atom()) | nil,
  persistence: map(),
  pubsub: atom(),
  rules: map(),
  states: map(),
  statistics: map()
}

Link to this section Functions

Link to this function

get_rule_set(state, id \\ :default)

View Source
Link to this function

new(default_rules, pubsub \\ %{module: nil, topic: nil}, states \\ %{})

View Source
Link to this function

set_pubsub(state, pubsub)

View Source
Link to this function

set_rule_set(state, rule_set)

View Source
Link to this function

set_rule_set(state, rule_set, id)

View Source