This is a Repository that hosts the plugins of aw-sync-suite Agent.For versions of aw-sync-suite >= 0.1.3
Plugins of aw-sync-suite Agent are used to extend the functionality of the agent. The plugins are written in Go and are executed by the agent during the aggregation stage.
Plugin | Description | Has Config | Config File |
---|---|---|---|
filters |
Filters the data of ActivityWatch | ✅ | aw-plugin-filtes.yaml |
To write a plugin, you need to create a Go folder in the plugins
directory.
Inside this folder you should contain the plugin implementation idea which will implements the Plugin
interface as a core of the plugin.
Method | Signature | Description |
---|---|---|
Initialize |
Initialize() |
Initialization of the plugin (Before the aw data) |
Execute |
Execute(watcher string, events Events, userID string, includeHostName bool) |
Execution of the plugin (While having the aw data) |
ReplicateConfig |
ReplicateConfig(path string) |
Replicate the plugin config (for service purposes) |
RawName |
RawName() string |
Get the raw name of the plugin (module name) |
Name |
Name() string |
Get the name of the configuration of the plugin (with prefix aw-plugin-{RawName}.yaml |
This project is licensed under the MIT license.
See LICENSE for more information.