cmd

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2025 License: GPL-3.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdjustBridgeDBValue

func AdjustBridgeDBValue(cmd *cobra.Command)

AdjustBridgeDBValue function is called to set appropriate bridge db path

func BridgeCommands

func BridgeCommands(v *viper.Viper, loggerInstance log.Logger, caller string) *cobra.Command

BridgeCommands returns command for bridge service

func DecorateWithBridgeRootFlags

func DecorateWithBridgeRootFlags(cmd *cobra.Command, v *viper.Viper, loggerInstance log.Logger, caller string)

DecorateWithBridgeRootFlags is called when bridge flags needs to be added to command

func GetStartCmd

func GetStartCmd() *cobra.Command

GetStartCmd returns the start command to start bridge

func StartBridge

func StartBridge(isStandAlone bool)

StartBridge starts bridge service, isStandAlone prevents os.Exit if the bridge started as side service

func StartBridgeWithCtx

func StartBridgeWithCtx(shutdownCtx context.Context, clientCtx client.Context) error

StartBridgeWithCtx starts bridge service and is able to shutdow gracefully returns service errors, if any

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL