Skip to content

Latest commit

 

History

History

plugins

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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