server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2018 License: Apache-2.0 Imports: 9 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitCmd

func InitCmd(gen GenOptions, logger log.Logger, home string, args []string) error

InitCmd will initialize all files for tendermint, along with proper app_options. The application can pass in a function to generate proper options. And may want to use GenerateCoinKey to create default account(s).

func StartCmd

func StartCmd(gen AppGenerator, logger log.Logger, home string, args []string) error

StartCmd initializes the application, and

Types

type AppGenerator

type AppGenerator func(string, log.Logger) (abci.Application, error)

AppGenerator lets us lazily initialize app, using home dir and logger potentially initialized with other flags

type GenOptions

type GenOptions func(args []string) (json.RawMessage, error)

GenOptions can parse command-line and flag to generate default app_options for the genesis file. This is application-specific

Jump to

Keyboard shortcuts

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