mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-10-04 11:46:23 +08:00
23 lines
394 B
Go
23 lines
394 B
Go
package plugin_monitor
|
|
|
|
import (
|
|
"github.com/polarsignals/frostdb"
|
|
"m7s.live/m7s/v5"
|
|
)
|
|
|
|
var _ = m7s.InstallPlugin[MonitorPlugin]()
|
|
|
|
type MonitorPlugin struct {
|
|
m7s.Plugin
|
|
columnstore *frostdb.ColumnStore
|
|
}
|
|
|
|
func (cfg *MonitorPlugin) OnInit() (err error) {
|
|
cfg.columnstore, err = frostdb.New()
|
|
//database, _ := cfg.columnstore.DB(cfg, "monitor")
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return
|
|
}
|