Documentation ¶
Index ¶
Constants ¶
View Source
const IpnsValidatorTag = "ipns"
IpnsValidatorTag required for constructClientDHTRouting()
Variables ¶
View Source
var DHTClientOption ipfscore.RoutingOption = constructClientDHTRouting
DHTClientOption required for constructClientDHTRouting()
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) *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()
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 // The coin to use CoinType wallet.CoinType }
NodeConfig struct of the config parameters to be passed when creating a new node
Click to show internal directories.
Click to hide internal directories.