Documentation ¶
Index ¶
- type AppInfo
- type BeaconApp
- type NodeBuilder
- func (nb *NodeBuilder[T]) BuildRootCmd() *cobra.Command
- func (nb *NodeBuilder[T]) DefaultAppConfig() any
- func (nb *NodeBuilder[T]) DefaultAppConfigTemplate() string
- func (nb *NodeBuilder[T]) DefaultCometConfig() *cmtcfg.Config
- func (nb *NodeBuilder[T]) RunNode()
- func (nb *NodeBuilder[T]) WithAppInfo(appInfo *AppInfo[T]) *NodeBuilder[T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppInfo ¶
type AppInfo[T servertypes.Application] struct { // Name is the name of the application. Name string // Description is a short description of the application. Description string // Creator is a function that creates the application. Creator servertypes.AppCreator[T] // DepInjectConfig is the configuration for the application. DepInjectConfig depinject.Config }
AppInfo is a struct that holds the application information.
type NodeBuilder ¶
type NodeBuilder[T servertypes.Application] struct { // contains filtered or unexported fields }
NodeBuilder is a struct that holds the application information.
func NewNodeBuilder ¶
func NewNodeBuilder[T servertypes.Application]() *NodeBuilder[T]
NewNodeBuilder creates a new NodeBuilder.
func (*NodeBuilder[T]) BuildRootCmd ¶
func (nb *NodeBuilder[T]) BuildRootCmd() *cobra.Command
BuildRootCmd builds the root command for the application.
func (*NodeBuilder[T]) DefaultAppConfig ¶
func (nb *NodeBuilder[T]) DefaultAppConfig() any
DefaultAppConfig returns the default configuration for the application.
func (*NodeBuilder[T]) DefaultAppConfigTemplate ¶
func (nb *NodeBuilder[T]) DefaultAppConfigTemplate() string
DefaultAppConfigTemplate returns the default configuration template for the application.
func (*NodeBuilder[T]) DefaultCometConfig ¶
func (nb *NodeBuilder[T]) DefaultCometConfig() *cmtcfg.Config
DefaultCometConfig returns the default configuration for the CometBFT consensus engine.
func (*NodeBuilder[T]) WithAppInfo ¶
func (nb *NodeBuilder[T]) WithAppInfo(appInfo *AppInfo[T]) *NodeBuilder[T]
WithAppInfo sets the application information.
Directories ¶
Path | Synopsis |
---|---|
genesis/types
Code generated by fastssz.
|
Code generated by fastssz. |
utils
|
|
maxprocs
Package maxprocs automatically set GOMAXPROCS to match the Linux container CPU quota (if any), returning any error encountered and an undo function.
|
Package maxprocs automatically set GOMAXPROCS to match the Linux container CPU quota (if any), returning any error encountered and an undo function. |
Click to show internal directories.
Click to hide internal directories.