daemon

package
v0.0.0-...-99ea1f7 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultController = func(needReply bool, str string) (string, error) {
	fmt.Fprintln(os.Stderr, "FIXME: Would upcall to controller with", str)
	return "", nil
}

DefaultController is a stub controller.

Functions

func AddGenesisAccountCmd

func AddGenesisAccountCmd(
	ctx *server.Context, depCdc *amino.Codec, cdc *codecstd.Codec, defaultNodeHome, defaultClientHome string,
) *cobra.Command

AddGenesisAccountCmd returns add-genesis-account cobra Command.

func InitTestnet

func InitTestnet(
	cmd *cobra.Command, config *tmconfig.Config, cdc *codec.Codec,
	mbm module.BasicManager, genBalIterator bank.GenesisBalancesIterator,
	outputDir, chainID, minGasPrices, nodeDirPrefix, nodeDaemonHome,
	nodeCLIHome, startingIPAddress string, numValidators int,
) error

Initialize the testnet

func Run

func Run()

Run starts the app with a stub controller.

func RunWithController

func RunWithController(sendToController Sender)

RunWithController starts the app with a custom upcall handler.

Types

type Sender

type Sender func(needReply bool, str string) (string, error)

Sender is a function that sends a request to the controller.

Jump to

Keyboard shortcuts

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