Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct {
	OpenBazaarNode *core.OpenBazaarNode
	// contains filtered or unexported fields
}
    Node configuration structure
func NewNode ¶
func NewNode(repoPath string, authenticationToken string, testnet bool, userAgent string, walletTrustedPeer string, password string, mnemonic string, profile bool) *Node
NewNode create the configuration file for a new node
func NewNodeWithConfig ¶ added in v0.13.0
func NewNodeWithConfig(config *NodeConfig, password string, mnemonic string) (*Node, error)
NewNodeWithConfig create a new node using the configuration file from NewNode()
func (*Node) PublishUnlocked ¶ added in v0.13.5
PublishUnlocked return true if publish is unlocked
type NodeConfig ¶
type NodeConfig struct {
	// Path for the node's data directory
	RepoPath string
	// An API authentication. Authentication is turned on if not "".
	AuthenticationToken string
	// Use testnet
	Testnet bool
	// Add a custom user-agent
	UserAgent string
	// Add a trusted peer for the wallet
	WalletTrustedPeer string
	// Processes to disable
	DisableWallet        bool
	DisableExchangerates bool
	// Run the pprof profiler on port 6060
	Profile bool
}
    NodeConfig struct of the config parameters to be passed when creating a new node
 Click to show internal directories. 
   Click to hide internal directories.