Versions in this module Expand all Collapse all v0 v0.1.0 Nov 3, 2022 Changes in this version + func Register(dbnfo DatabaseInfo) + type Backup interface + Init func(Database) error + Load func() error + Save func() error + type BackupInfo struct + Back Backup + Name string + type Database interface + Backup func() Backup + Check func() bool + Drop func(Hash, PeerID) + HashStats func(Hash) (uint16, uint16) + Hashes func() int + Init func(backup Backup) error + PeerList func(Hash, uint, bool) [][]byte + PeerListBytes func(Hash, uint) ([]byte, []byte) + Save func(netip.Addr, uint16, bool, Hash, PeerID) + SyncExpvars func() error + Trim func() + func Open() (Database, error) + type DatabaseDriver struct + type DatabaseInfo struct + Backups []BackupInfo + DB Database + Name string + type Hash [20]byte + type Peer struct + Complete bool + IP netip.Addr + LastSeen int64 + Port uint16 + type PeerID [20]byte