Documentation
¶
Index ¶
- func Commands(defaultNodeHome string, appCreator servertypes.AppCreator, ...) []*cobra.Command
- func ExportCmd(appExporter servertypes.AppExporter, defaultNodeHome string) *cobra.Command
- func GetAppDBBackend(opts servertypes.AppOptions) dbm.BackendType
- func ListenForQuitSignals(ctx context.Context, cancelFn context.CancelFunc, g *errgroup.Group, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Commands ¶
func Commands(defaultNodeHome string, appCreator servertypes.AppCreator, appExport servertypes.AppExporter, addStartFlags servertypes.ModuleInitFlags) []*cobra.Command
Commands server commands
func ExportCmd ¶
func ExportCmd(appExporter servertypes.AppExporter, defaultNodeHome string) *cobra.Command
ExportCmd dumps app state to JSON.
func GetAppDBBackend ¶
func GetAppDBBackend(opts servertypes.AppOptions) dbm.BackendType
GetAppDBBackend gets the backend type to use for the application DBs.
func ListenForQuitSignals ¶
func ListenForQuitSignals(ctx context.Context, cancelFn context.CancelFunc, g *errgroup.Group, block bool, logger log.Logger)
ListenForQuitSignals listens for SIGINT and SIGTERM. When a signal is received, the cleanup function is called, indicating the caller can gracefully exit or return.
Note, the blocking behavior of this depends on the block argument. The caller must ensure the corresponding context derived from the cancelFn is used correctly.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.