Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DHTClientOption ipfscore.RoutingOption = constructClientDHTRouting
DHTClientOption stores the OpenBazaar node DHT routing option
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node structure definition for IPFS OpenBazaar node including configurations for node, IPFS, and API.
func NewNode ¶
func NewNode(config NodeConfig) (*Node, error)
NewNode function creates a new OpenBazaar node and initializes its configuration
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 }
NodeConfig type definition includes path for data directory, authentication token, Testnet flag, user-agent, and trusted peer for wallet
Click to show internal directories.
Click to hide internal directories.