Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
goshimmer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iota-imt
goshimmer
Commits
aea96e9b
Unverified
Commit
aea96e9b
authored
4 years ago
by
Levente Pap
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
main.go
+5
-8
5 additions, 8 deletions
main.go
plugins/core.go
+3
-4
3 additions, 4 deletions
plugins/core.go
plugins/research.go
+3
-3
3 additions, 3 deletions
plugins/research.go
plugins/ui.go
+3
-3
3 additions, 3 deletions
plugins/ui.go
plugins/webapi.go
+3
-3
3 additions, 3 deletions
plugins/webapi.go
with
17 additions
and
21 deletions
main.go
+
5
−
8
View file @
aea96e9b
...
@@ -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
,
)
)
}
}
This diff is collapsed.
Click to expand it.
plugin
mgr
/core
/plugins
.go
→
plugin
s
/core.go
+
3
−
4
View file @
aea96e9b
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
(),
...
...
This diff is collapsed.
Click to expand it.
plugin
mgr
/research
/plugins
.go
→
plugin
s
/research.go
+
3
−
3
View file @
aea96e9b
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
(),
...
...
This diff is collapsed.
Click to expand it.
plugin
mgr/ui/plugins
.go
→
plugin
s/ui
.go
+
3
−
3
View file @
aea96e9b
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
(),
)
)
This diff is collapsed.
Click to expand it.
plugin
mgr
/webapi
/plugins
.go
→
plugin
s
/webapi.go
+
3
−
3
View file @
aea96e9b
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
(),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment