Skip to content
Snippets Groups Projects
Unverified Commit aea96e9b authored by Levente Pap's avatar Levente Pap Committed by GitHub
Browse files

Flatten plugins, remove pluginmgr (#761)

* Flatten plugins, remove pluginmgr

* Address linting warnings
parent 806ee367
No related branches found
No related tags found
No related merge requests found
...@@ -3,18 +3,15 @@ package main ...@@ -3,18 +3,15 @@ package main
import ( import (
_ "net/http/pprof" _ "net/http/pprof"
"github.com/iotaledger/goshimmer/pluginmgr/core" "github.com/iotaledger/goshimmer/plugins"
"github.com/iotaledger/goshimmer/pluginmgr/research"
"github.com/iotaledger/goshimmer/pluginmgr/ui"
"github.com/iotaledger/goshimmer/pluginmgr/webapi"
"github.com/iotaledger/hive.go/node" "github.com/iotaledger/hive.go/node"
) )
func main() { func main() {
node.Run( node.Run(
core.PLUGINS, plugins.Core,
research.PLUGINS, plugins.Research,
ui.PLUGINS, plugins.UI,
webapi.PLUGINS, plugins.WebAPI,
) )
} }
package core package plugins
import ( import (
"github.com/iotaledger/goshimmer/dapps/faucet" "github.com/iotaledger/goshimmer/dapps/faucet"
...@@ -22,12 +22,11 @@ import ( ...@@ -22,12 +22,11 @@ import (
"github.com/iotaledger/goshimmer/plugins/spammer" "github.com/iotaledger/goshimmer/plugins/spammer"
"github.com/iotaledger/goshimmer/plugins/syncbeacon" "github.com/iotaledger/goshimmer/plugins/syncbeacon"
"github.com/iotaledger/goshimmer/plugins/syncbeaconfollower" "github.com/iotaledger/goshimmer/plugins/syncbeaconfollower"
"github.com/iotaledger/hive.go/node" "github.com/iotaledger/hive.go/node"
) )
// PLUGINS is the list of core plugins. // Core contains the core plugins of a GoShimmer node.
var PLUGINS = node.Plugins( var Core = node.Plugins(
banner.Plugin(), banner.Plugin(),
config.Plugin(), config.Plugin(),
logger.Plugin(), logger.Plugin(),
......
package research package plugins
import ( import (
"github.com/iotaledger/goshimmer/dapps/networkdelay" "github.com/iotaledger/goshimmer/dapps/networkdelay"
...@@ -10,8 +10,8 @@ import ( ...@@ -10,8 +10,8 @@ import (
"github.com/iotaledger/hive.go/node" "github.com/iotaledger/hive.go/node"
) )
// PLUGINS is the list of research plugins. // Research contains research plugins of a GoShimmer node.
var PLUGINS = node.Plugins( var Research = node.Plugins(
remotelog.Plugin(), remotelog.Plugin(),
analysisserver.Plugin(), analysisserver.Plugin(),
analysisclient.Plugin(), analysisclient.Plugin(),
......
package ui package plugins
import ( import (
"github.com/iotaledger/goshimmer/plugins/dashboard" "github.com/iotaledger/goshimmer/plugins/dashboard"
"github.com/iotaledger/hive.go/node" "github.com/iotaledger/hive.go/node"
) )
// PLUGINS is the list of ui plugins. // UI contains the user interface plugins of a GoShimmer node.
var PLUGINS = node.Plugins( var UI = node.Plugins(
dashboard.Plugin(), dashboard.Plugin(),
) )
package webapi package plugins
import ( import (
"github.com/iotaledger/goshimmer/plugins/webapi" "github.com/iotaledger/goshimmer/plugins/webapi"
...@@ -15,8 +15,8 @@ import ( ...@@ -15,8 +15,8 @@ import (
"github.com/iotaledger/hive.go/node" "github.com/iotaledger/hive.go/node"
) )
// PLUGINS is the list of webapi plugins. // WebAPI contains the webapi endpoint plugins of a GoShimmer node.
var PLUGINS = node.Plugins( var WebAPI = node.Plugins(
webapi.Plugin(), webapi.Plugin(),
webauth.Plugin(), webauth.Plugin(),
data.Plugin(), data.Plugin(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment