2024-06-05 11:53:09 +00:00
|
|
|
//go:build disable_torrent
|
|
|
|
// +build disable_torrent
|
2024-06-04 21:55:36 +00:00
|
|
|
|
2024-06-03 23:30:56 +00:00
|
|
|
package communities
|
|
|
|
|
|
|
|
import (
|
|
|
|
"crypto/ecdsa"
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/status-im/status-go/eth-node/types"
|
|
|
|
"github.com/status-im/status-go/protocol/protobuf"
|
|
|
|
)
|
|
|
|
|
2024-06-06 14:59:46 +00:00
|
|
|
type ArchiveFileManagerNop struct{}
|
2024-06-03 23:30:56 +00:00
|
|
|
|
2024-06-06 14:59:46 +00:00
|
|
|
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) {
|
2024-06-03 23:30:56 +00:00
|
|
|
return nil, nil
|
|
|
|
}
|
|
|
|
|
2024-06-06 14:59:46 +00:00
|
|
|
func (amm *ArchiveFileManagerNop) CreateHistoryArchiveTorrentFromDB(communityID types.HexBytes, topics []types.TopicType, startDate time.Time, endDate time.Time, partition time.Duration, encrypt bool) ([]string, error) {
|
2024-06-03 23:30:56 +00:00
|
|
|
return nil, nil
|
|
|
|
}
|
|
|
|
|
2024-06-06 14:59:46 +00:00
|
|
|
func (amm *ArchiveFileManagerNop) SaveMessageArchiveID(communityID types.HexBytes, hash string) error {
|
2024-06-03 23:30:56 +00:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2024-06-06 14:59:46 +00:00
|
|
|
func (amm *ArchiveFileManagerNop) GetMessageArchiveIDsToImport(communityID types.HexBytes) ([]string, error) {
|
2024-06-03 23:30:56 +00:00
|
|
|
return nil, nil
|
|
|
|
}
|
|
|
|
|
2024-06-06 14:59:46 +00:00
|
|
|
func (amm *ArchiveFileManagerNop) SetMessageArchiveIDImported(communityID types.HexBytes, hash string, imported bool) error {
|
2024-06-03 23:30:56 +00:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2024-06-06 14:59:46 +00:00
|
|
|
func (amm *ArchiveFileManagerNop) ExtractMessagesFromHistoryArchive(communityID types.HexBytes, archiveID string) ([]*protobuf.WakuMessage, error) {
|
2024-06-03 23:30:56 +00:00
|
|
|
return nil, nil
|
|
|
|
}
|
|
|
|
|
2024-06-06 14:59:46 +00:00
|
|
|
func (amm *ArchiveFileManagerNop) GetHistoryArchiveMagnetlink(communityID types.HexBytes) (string, error) {
|
2024-06-03 23:30:56 +00:00
|
|
|
return "", nil
|
|
|
|
}
|
|
|
|
|
2024-06-06 14:59:46 +00:00
|
|
|
func (amm *ArchiveFileManagerNop) LoadHistoryArchiveIndexFromFile(myKey *ecdsa.PrivateKey, communityID types.HexBytes) (*protobuf.WakuMessageArchiveIndex, error) {
|
2024-06-03 23:30:56 +00:00
|
|
|
return nil, nil
|
|
|
|
}
|