github.com/status-im/status-go@v1.1.0/protocol/communities/manager_archive_file_nop.go (about) 1 //go:build disable_torrent 2 // +build disable_torrent 3 4 package communities 5 6 import ( 7 "crypto/ecdsa" 8 "time" 9 10 "github.com/status-im/status-go/eth-node/types" 11 "github.com/status-im/status-go/protocol/protobuf" 12 ) 13 14 type ArchiveFileManagerNop struct{} 15 16 func (amm *ArchiveFileManagerNop) CreateHistoryArchiveTorrentFromMessages(communityID types.HexBytes, messages []*types.Message, topics []types.TopicType, startDate time.Time, endDate time.Time, partition time.Duration, encrypt bool) ([]string, error) { 17 return nil, nil 18 } 19 20 func (amm *ArchiveFileManagerNop) CreateHistoryArchiveTorrentFromDB(communityID types.HexBytes, topics []types.TopicType, startDate time.Time, endDate time.Time, partition time.Duration, encrypt bool) ([]string, error) { 21 return nil, nil 22 } 23 24 func (amm *ArchiveFileManagerNop) SaveMessageArchiveID(communityID types.HexBytes, hash string) error { 25 return nil 26 } 27 28 func (amm *ArchiveFileManagerNop) GetMessageArchiveIDsToImport(communityID types.HexBytes) ([]string, error) { 29 return nil, nil 30 } 31 32 func (amm *ArchiveFileManagerNop) SetMessageArchiveIDImported(communityID types.HexBytes, hash string, imported bool) error { 33 return nil 34 } 35 36 func (amm *ArchiveFileManagerNop) ExtractMessagesFromHistoryArchive(communityID types.HexBytes, archiveID string) ([]*protobuf.WakuMessage, error) { 37 return nil, nil 38 } 39 40 func (amm *ArchiveFileManagerNop) GetHistoryArchiveMagnetlink(communityID types.HexBytes) (string, error) { 41 return "", nil 42 } 43 44 func (amm *ArchiveFileManagerNop) LoadHistoryArchiveIndexFromFile(myKey *ecdsa.PrivateKey, communityID types.HexBytes) (*protobuf.WakuMessageArchiveIndex, error) { 45 return nil, nil 46 }