Skip to content

Commit dd8acfe

Browse files
committed
setting up plugins
1 parent 67f5b0d commit dd8acfe

File tree

3 files changed

+36
-30
lines changed

3 files changed

+36
-30
lines changed

plugins/overflowmessenger/plugin.go

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
package overflow
2+
3+
import (
4+
"sync"
5+
6+
"github.com/iotaledger/goshimmer/packages/app/blockissuer"
7+
"github.com/iotaledger/goshimmer/packages/node"
8+
"github.com/iotaledger/goshimmer/packages/protocol"
9+
"go.uber.org/dig"
10+
)
11+
12+
var (
13+
plugin *node.Plugin
14+
pluginOnce sync.Once
15+
)
16+
17+
type dependencies struct {
18+
dig.In
19+
BlockIssuer *blockissuer.BlockIssuer
20+
Protocol *protocol.Protocol
21+
}
22+
23+
func Plugin() *node.Plugin {
24+
pluginOnce.Do(func() {
25+
plugin = node.NewPlugin("OverflowMessenger", new(dependencies), node.Enabled, configure, run)
26+
})
27+
return plugin
28+
}
29+
30+
func configure(plugin *node.Plugin) {
31+
32+
}
33+
34+
func run(plugin *node.Plugin) {
35+
36+
}

src/go.mod

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/overflow.go

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)