Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(dbnfo DatabaseInfo)
Register appends `databaseinfo` into the map of available drivers.
Types ¶
type BackupInfo ¶
type Database ¶
type Database interface { // Used to init the database after open() Init(backup Backup) error // Internal functions Check() bool Backup() Backup Trim() SyncExpvars() error Save(netip.Addr, uint16, bool, Hash, PeerID) Drop(Hash, PeerID) HashStats(Hash) (uint16, uint16) PeerList(Hash, uint, bool) [][]byte PeerListBytes(Hash, uint) ([]byte, []byte) // Number of hashes for stats Hashes() int }
type DatabaseDriver ¶
type DatabaseDriver struct {
// contains filtered or unexported fields
}
type DatabaseInfo ¶
type DatabaseInfo struct { Name string DB Database Backups []BackupInfo }
Click to show internal directories.
Click to hide internal directories.