-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapt to latest hive.go changes (#95)
* Adapt to latest hive.go changes * Move `core` and `plugins` to `components` folder * Fix gendoc * Disable depguard linter * Update workflows * Fix linter warnings * Update to go version 1.21
- Loading branch information
Showing
26 changed files
with
703 additions
and
695 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package app | ||
|
||
import ( | ||
"github.com/iotaledger/hive.go/app" | ||
"github.com/iotaledger/hive.go/app/components/profiling" | ||
"github.com/iotaledger/hive.go/app/components/shutdown" | ||
"github.com/iotaledger/inx-app/components/inx" | ||
"github.com/iotaledger/inx-mqtt/components/mqtt" | ||
"github.com/iotaledger/inx-mqtt/components/prometheus" | ||
) | ||
|
||
var ( | ||
// Name of the app. | ||
Name = "inx-mqtt" | ||
|
||
// Version of the app. | ||
Version = "1.0.0-rc.2" | ||
) | ||
|
||
func App() *app.App { | ||
return app.New(Name, Version, | ||
app.WithInitComponent(InitComponent), | ||
app.WithComponents( | ||
inx.Component, | ||
mqtt.Component, | ||
shutdown.Component, | ||
profiling.Component, | ||
prometheus.Component, | ||
), | ||
) | ||
} | ||
|
||
var ( | ||
InitComponent *app.InitComponent | ||
) | ||
|
||
func init() { | ||
InitComponent = &app.InitComponent{ | ||
Component: &app.Component{ | ||
Name: "App", | ||
}, | ||
NonHiddenFlags: []string{ | ||
"config", | ||
"help", | ||
"version", | ||
}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.