Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecuteCallbackFunc ¶
type ExecuteCallbackFunc = func() error
type Node ¶ added in v0.4.1
type Node struct {
FSCNode
// contains filtered or unexported fields
}
Node is a cobra based application that offers the following commands: - `node start` to instantiate and start the Fabric Smart Client stack. - `node migrate` to prepare the schema of every store and exit; `--check` only checks it. - `node peers --check` to check that the binary can talk to the configured peers. - `version` to get the version of the executed code; `--json` adds ranges and store steps.
func NewWithConfPath ¶ added in v0.4.1
NewWithConfPath returns a new instance of Node whose configuration is loaded from the passed path.
func (*Node) Config ¶ added in v0.28.0
func (n *Node) Config() (driver.ConfigService, error)
Config returns the configuration of the wrapped FSCNode; see node.Node.Config.
func (*Node) Execute ¶ added in v0.4.1
func (n *Node) Execute(executeCallbackFunc ExecuteCallbackFunc)
Execute runs the command line and exits the process if a command fails: with the code of a start.ExitError, 1 otherwise.