Skip to content

Commit b397eea

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents ffd4bd6 + b84b47b commit b397eea

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Statup Plugin Example
2+
An example of a [Statup](https://github.com/hunterlong/statup) plugin using the Golang plugins feature. Remember to build this plugin on the same operating system type as
3+
your Statup service is running.
4+
5+
## Building
6+
Clone this repo, and run the commands below...
7+
```bash
8+
git clone https://github.com/hunterlong/statup_plugin
9+
cd statup-plugin
10+
11+
go build -buildmode=plugin -o example.so
12+
```
13+
Once you have `example.so`, drag it into the `plugins` folder in your Statup directory. Reload Statup service and it should
14+
have some text for `OnLoad()`!
15+
16+
<p align="center">
17+
<img width="95%" src="https://s3-us-west-2.amazonaws.com/gitimgs/statupplugin.png">
18+
</p>
19+
20+
## Creating a Custom Plugin
21+
The plan is to give users the ability to create their own plugins, public and private. This repo will be updated when there
22+
are more features and changes to the Statup plugin package. Enjoy!

0 commit comments

Comments
 (0)