Documentation
¶
Index ¶
- Variables
- func InitializeRepo(dataDir, password, mnemonic string, testnet bool, creationDate time.Time) (*db.SQLiteDatastore, error)
- func PrintError(e string)
- func RestoreDirectory(repoPath, directory string, nd *ipfscore.IpfsNode, id *cid.Cid, ...)
- func RestoreFile(repoPath, peerID, filename string, ctx commands.Context, wg *sync.WaitGroup)
- type Convert
- type DecryptDatabase
- type DummyListener
- type DummyWriter
- type EncryptDatabase
- type Init
- type Restore
- type SetAPICreds
- type Start
- type Status
Constants ¶
This section is empty.
Variables ¶
View Source
var DHTOption ipfscore.RoutingOption = constructDHTRouting
View Source
var (
ErrNoGateways = errors.New("No gateway addresses configured")
)
Functions ¶
func InitializeRepo ¶
func InitializeRepo(dataDir, password, mnemonic string, testnet bool, creationDate time.Time) (*db.SQLiteDatastore, error)
func PrintError ¶
func PrintError(e string)
func RestoreDirectory ¶
func RestoreDirectory(repoPath, directory string, nd *ipfscore.IpfsNode, id *cid.Cid, wg *sync.WaitGroup)
func RestoreFile ¶
func RestoreFile(repoPath, peerID, filename string, ctx commands.Context, wg *sync.WaitGroup)
Types ¶
type Convert ¶ added in v0.11.0
type Convert struct {
Password string `short:"p" long:"password" description:"the encryption password if the database is encrypted"`
DataDir string `short:"d" long:"datadir" description:"specify the data directory to be used"`
Testnet bool `short:"t" long:"testnet" description:"use the test network"`
}
type DecryptDatabase ¶
type DecryptDatabase struct {
DataDir string `short:"d" long:"datadir" description:"specify the data directory to be used"`
}
type DummyListener ¶
type DummyListener struct {
// contains filtered or unexported fields
}
type DummyWriter ¶
type DummyWriter struct{}
type EncryptDatabase ¶
type EncryptDatabase struct {
DataDir string `short:"d" long:"datadir" description:"specify the data directory to be used"`
}
type Init ¶
type Init struct {
Password string `short:"p" long:"password" description:"the encryption password if the database is to be encrypted"`
DataDir string `short:"d" long:"datadir" description:"specify the data directory to be used"`
Mnemonic string `short:"m" long:"mnemonic" description:"specify a mnemonic seed to use to derive the keychain"`
Testnet bool `short:"t" long:"testnet" description:"use the test network"`
Force bool `short:"f" long:"force" description:"force overwrite existing repo (dangerous!)"`
WalletCreationDate string `` /* 148-byte string literal not displayed */
}
type Restore ¶
type Restore struct {
Password string `short:"p" long:"password" description:"the encryption password if the database is encrypted"`
DataDir string `short:"d" long:"datadir" description:"specify the data directory to be used"`
Testnet bool `short:"t" long:"testnet" description:"use the test network"`
TorPassword string `long:"torpassword" description:"Set the tor control password. This will override the tor password in the config."`
Tor bool `` /* 143-byte string literal not displayed */
Mnemonic string `short:"m" long:"mnemonic" description:"specify a mnemonic seed to use to derive the keychain"`
WalletCreationDate string `` /* 148-byte string literal not displayed */
}
type SetAPICreds ¶
type SetAPICreds struct {
DataDir string `short:"d" long:"datadir" description:"specify the data directory to be used"`
Testnet bool `short:"t" long:"testnet" description:"config file is for testnet node"`
}
type Start ¶
type Start struct {
Password string `short:"p" long:"password" description:"the encryption password if the database is encrypted"`
Testnet bool `short:"t" long:"testnet" description:"use the test network"`
Regtest bool `short:"r" long:"regtest" description:"run in regression test mode"`
LogLevel string `short:"l" long:"loglevel" description:"set the logging level [debug, info, notice, warning, error, critical]" defaut:"debug"`
NoLogFiles bool `short:"f" long:"nologfiles" description:"save logs on disk"`
AllowIP []string `short:"a" long:"allowip" description:"only allow API connections from these IPs"`
STUN bool `short:"s" long:"stun" description:"use stun on µTP IPv4"`
DataDir string `short:"d" long:"datadir" description:"specify the data directory to be used"`
AuthCookie string `short:"c" long:"authcookie" description:"turn on API authentication and use this specific cookie"`
UserAgent string `short:"u" long:"useragent" description:"add a custom user-agent field"`
Verbose bool `short:"v" long:"verbose" description:"print openbazaar logs to stdout"`
TorPassword string `long:"torpassword" description:"Set the tor control password. This will override the tor password in the config."`
Tor bool `` /* 143-byte string literal not displayed */
DualStack bool `` /* 199-byte string literal not displayed */
DisableWallet bool `long:"disablewallet" description:"disable the wallet functionality of the node"`
DisableExchangeRates bool `long:"disableexchangerates" description:"disable the exchange rate service to prevent api queries"`
Storage string `long:"storage" description:"set the outgoing message storage option [self-hosted, dropbox] default=self-hosted"`
BitcoinCash bool `long:"bitcoincash" description:"use a Bitcoin Cash wallet in a dedicated data directory"`
ZCash string `` /* 140-byte string literal not displayed */
}
Click to show internal directories.
Click to hide internal directories.