Grapher v0.6.0 Grapher.SetupBehaviour behaviour View Source

Defines the expected API for a Setup Module.

A Setup Module is simply a convienient way to load pre-determined contexts and queries into Grapher at application start. If you wish to use a Setup Module you need to do two things:

  1. Define a module which uses this Behaviour
  2. Add that module to your config config :grapher, setup_module: <MySetupModule>

Link to this section Summary

Link to this section Callbacks

Link to this callback setup() View Source
setup() :: :ok | {:error, term()}