Skip to content
Snippets Groups Projects
Unverified Commit a996497e authored by Wolfgang Welz's avatar Wolfgang Welz Committed by GitHub
Browse files

Merge pull request #67 from iotaledger/feat/plugin-status

Manually enable/disable plugins
parents 8044edd0 3593d7d2
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ import (
"github.com/labstack/echo"
)
var PLUGIN = node.NewPlugin("WebAPI GTTA Endpoint", func(plugin *node.Plugin) {
var PLUGIN = node.NewPlugin("WebAPI GTTA Endpoint", node.Enabled, func(plugin *node.Plugin) {
webapi.AddEndpoint("getTransactionsToApprove", Handler)
})
......
......@@ -10,7 +10,7 @@ import (
"github.com/labstack/echo"
)
var PLUGIN = node.NewPlugin("Spammer", configure)
var PLUGIN = node.NewPlugin("Spammer", node.Disabled, configure)
func configure(plugin *node.Plugin) {
webapi.AddEndpoint("spammer", WebApiHandler)
......
......@@ -10,7 +10,7 @@ import (
"github.com/labstack/echo"
)
var PLUGIN = node.NewPlugin("WebAPI", configure, run)
var PLUGIN = node.NewPlugin("WebAPI", node.Enabled, configure, run)
var Server = echo.New()
......
......@@ -12,7 +12,8 @@ import (
"github.com/iotaledger/goshimmer/plugins/tangle"
)
var PLUGIN = node.NewPlugin("ZeroMQ", configure, run)
// zeromq logging is disabled by default
var PLUGIN = node.NewPlugin("ZeroMQ", node.Disabled, configure, run)
var publisher *Publisher
var emptyTag = strings.Repeat("9", 27)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment