node

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: Apache-2.0 Imports: 6 Imported by: 3

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 FSCNode added in v0.4.1

type FSCNode interface {
	ID() string
	Start() error
	Stop()
	InstallSDK(p node.SDK) error
	GetService(v interface{}) (interface{}, error)
	RegisterService(service interface{}) 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: - `peer start` to instantiate and start the Fabric Smart Client stack. - `version` to get the version of the executed code.

func New

func New() *Node

New returns a new instance of Node from the default configuration path.

func NewWithConfPath added in v0.4.1

func NewWithConfPath(confPath string) *Node

NewWithConfPath returns a new instance of Node whose configuration is loaded from the passed path.

func (*Node) Callback added in v0.4.1

func (n *Node) Callback() chan<- error

func (*Node) Execute added in v0.4.1

func (n *Node) Execute(executeCallbackFunc ExecuteCallbackFunc)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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