View Source MishkaInstaller.PluginETS (Mishka Installer v0.0.4)

This module provides a series of essential functions for storing plugins on ETS.

Link to this section Summary

Functions

  • Deleting a plug-in from the ETS table.
  • Deleting plugins from the ETS table based on a specific event.

Examples

MishkaInstaller.PluginETS.delete(module: "TestModule.a_plugin")
# or
MishkaInstaller.PluginETS.delete(event: "test_event")

Getting a plug-in from the ETS table.

Getting all plug-ins from the ETS table.

Storing a plug-in on the ETS table.

Initializing ETS table with database

Link to this section Functions

  • Deleting a plug-in from the ETS table.
  • Deleting plugins from the ETS table based on a specific event.

examples

Examples

MishkaInstaller.PluginETS.delete(module: "TestModule.a_plugin")
# or
MishkaInstaller.PluginETS.delete(event: "test_event")

Getting a plug-in from the ETS table.

examples

Examples

 MishkaInstaller.PluginETS.get_all(module: "TestModule.a_plugin")

Getting all plug-ins from the ETS table.

examples

Examples

  MishkaInstaller.PluginETS.get_all(event: "test_event")

Storing a plug-in on the ETS table.

examples

Examples

event = %MishkaInstaller.PluginState{name: "MishkaUser.SuccessLogin", event: Atom.to_string(@ref), priority: 1}
MishkaInstaller.PluginETS.push(event)

Initializing ETS table with database

examples

Examples

MishkaInstaller.PluginETS.sync_with_database()