forked from iotaledger/hornet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
64 lines (62 loc) · 1.83 KB
/
main.go
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package main
import (
"github.com/gohornet/hornet/core/app"
"github.com/gohornet/hornet/core/database"
"github.com/gohornet/hornet/core/gossip"
"github.com/gohornet/hornet/core/gracefulshutdown"
"github.com/gohornet/hornet/core/p2p"
"github.com/gohornet/hornet/core/pow"
"github.com/gohornet/hornet/core/profile"
"github.com/gohornet/hornet/core/protocfg"
"github.com/gohornet/hornet/core/snapshot"
"github.com/gohornet/hornet/core/tangle"
"github.com/gohornet/hornet/pkg/node"
"github.com/gohornet/hornet/plugins/coordinator"
"github.com/gohornet/hornet/plugins/dashboard"
"github.com/gohornet/hornet/plugins/debug"
"github.com/gohornet/hornet/plugins/migrator"
"github.com/gohornet/hornet/plugins/mqtt"
"github.com/gohornet/hornet/plugins/p2pdisc"
"github.com/gohornet/hornet/plugins/profiling"
"github.com/gohornet/hornet/plugins/prometheus"
"github.com/gohornet/hornet/plugins/receipt"
"github.com/gohornet/hornet/plugins/restapi"
restapiv1 "github.com/gohornet/hornet/plugins/restapi/v1"
"github.com/gohornet/hornet/plugins/spammer"
"github.com/gohornet/hornet/plugins/urts"
"github.com/gohornet/hornet/plugins/versioncheck"
"github.com/gohornet/hornet/plugins/warpsync"
)
func main() {
node.Run(
node.WithInitPlugin(app.InitPlugin),
node.WithCorePlugins([]*node.CorePlugin{
profile.CorePlugin,
protocfg.CorePlugin,
gracefulshutdown.CorePlugin,
database.CorePlugin,
pow.CorePlugin,
p2p.CorePlugin,
gossip.CorePlugin,
tangle.CorePlugin,
snapshot.CorePlugin,
}...),
node.WithPlugins([]*node.Plugin{
profiling.Plugin,
versioncheck.Plugin,
restapi.Plugin,
restapiv1.Plugin,
p2pdisc.Plugin,
warpsync.Plugin,
urts.Plugin,
dashboard.Plugin,
spammer.Plugin,
mqtt.Plugin,
coordinator.Plugin,
migrator.Plugin,
receipt.Plugin,
prometheus.Plugin,
debug.Plugin,
}...),
)
}