statping/plugin/main.go

35 lines
495 B
Go
Raw Normal View History

2018-06-14 01:19:00 +00:00
package plugin
import (
2018-07-17 09:18:20 +00:00
"github.com/hunterlong/statup/types"
2018-06-15 04:30:10 +00:00
"upper.io/db.v3/lib/sqlbuilder"
2018-06-14 01:19:00 +00:00
)
2018-06-14 06:38:15 +00:00
//
// STATUP PLUGIN INTERFACE
//
// v0.1
//
// https://statup.io
//
2018-06-19 04:48:25 +00:00
//
// An expandable plugin framework that will still
// work even if there's an update or addition.
//
2018-06-14 06:38:15 +00:00
var (
2018-06-15 04:30:10 +00:00
DB sqlbuilder.Database
2018-06-14 06:38:15 +00:00
)
2018-07-17 09:18:20 +00:00
type PluginInfo struct {
i *types.Info
2018-06-14 06:38:15 +00:00
}
2018-07-17 09:18:20 +00:00
func SetDatabase(database sqlbuilder.Database) {
DB = database
2018-06-14 06:38:15 +00:00
}
2018-06-19 06:00:56 +00:00
func (p *PluginInfo) Form() string {
return "okkokokkok"
}