Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 776 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 776 Bytes

Yagostatus plugins

Overview

Yagostatus supports go plugins. Plugins can be used to add or replace existing widgets.

To load a plugin, you need to specify it in the config file. yagostatus.yml:

plugins:
  path: /path/to/plugins
  load:
    - plugin: example.so
      param: value
  • path - Directory where the .so file are located (default: current working directory).
  • plugin - Plugin file (you can specify an absolute path).
  • Plugins can have parameters.

Example

See example

Builtin

Plugins can be embedded in the yagostatus binary file.

go get -tags plugin_example github.com/burik666/yagostatus

See example_builtin.go, example/builtin.go