Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DHTStorage ¶
type DHTStorage struct { // Filename of the SQLite3 database to use. // Leave blank to use a sensible default. Filename string }
func (*DHTStorage) LoadDHT ¶
func (ds *DHTStorage) LoadDHT(d *dht.DHT) error
Loads the node database into the running DHT. Call this just after running the DHT.
func (*DHTStorage) LoadDHTConfig ¶
func (ds *DHTStorage) LoadDHTConfig(cfg *dht.Config) error
Loads the node ID and port number from the database and sets the values in the Config.
Click to show internal directories.
Click to hide internal directories.