mobile

package
v2.1.1-dev+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: MIT Imports: 51 Imported by: 1

Documentation

Index

Constants

View Source
const IpnsValidatorTag = "ipns"

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 {
	OpenBazaarNode *core.OpenBazaarNode
	// 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)

func (*Node) Start

func (n *Node) Start() error

func (*Node) Stop

func (n *Node) Stop() error

Stop function closes the OpenBazaar node datastore, repository lock, wallet, and IPFS node

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
}

NodeConfig type definition includes path for data directory, authentication token, Testnet flag, user-agent, and trusted peer for wallet

Jump to

Keyboard shortcuts

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