-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdummy.go
More file actions
35 lines (28 loc) · 1.01 KB
/
dummy.go
File metadata and controls
35 lines (28 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//go:build !plugins
// +build !plugins
package plugins
import (
agent_entities "github.com/bolt-observer/agent/entities"
"github.com/bolt-observer/agent/filter"
api "github.com/bolt-observer/agent/lightning"
"github.com/urfave/cli"
)
// Dummy file just to make "go vet" happpy
var (
// AllPluginFlags hold the extra flags for plugins
AllPluginFlags []cli.Flag
// AllPluginCommands hold the extra commands for plugins
AllPluginCommands []cli.Command
Plugins map[string]agent_entities.Plugin
RegisteredPlugins []PluginData
)
// InitPluginFn signature of init plugin function
type InitPluginFn func(lnAPI api.NewAPICall, filter filter.FilteringInterface, cmdCtx *cli.Context, nodeDataInvalidator agent_entities.Invalidatable) (agent_entities.Plugin, error)
// PluginData structure
type PluginData struct {
Name string
Init InitPluginFn
}
func InitPlugins(lnAPI api.NewAPICall, filter filter.FilteringInterface, cmdCtx *cli.Context, nodeDataInvalidator agent_entities.Invalidatable) error {
return nil
}