diff --git a/pkg/workers/workers.go b/pkg/workers/workers.go index 7b3c96d0..a2a3a604 100644 --- a/pkg/workers/workers.go +++ b/pkg/workers/workers.go @@ -76,21 +76,6 @@ var ( workerDoneCh = make(chan *pubsub2.Message) ) -// // WorkerCategory represents the main categories of workers -// type WorkerCategory int64 - -// const ( -// CategoryDiscord WorkerCategory = iota -// CategoryTelegram -// CategoryTwitter -// CategoryWeb -// ) - -// // String returns the string representation of the WorkerCategory -// func (wc WorkerCategory) String() string { -// return [...]string{"Discord", "Telegram", "Twitter", "Web"}[wc] -// } - // WorkerTypeToCategory maps WorkerType to WorkerCategory func WorkerTypeToCategory(wt WorkerType) pubsub.WorkerCategory { switch wt { @@ -107,17 +92,6 @@ func WorkerTypeToCategory(wt WorkerType) pubsub.WorkerCategory { } } -type CID struct { - Duration float64 `json:"duration"` - RecordId string `json:"cid"` - Timestamp int64 `json:"timestamp"` -} - -type Record struct { - PeerId string `json:"peerid"` - CIDs []CID `json:"cids"` -} - type ChanResponse struct { Response map[string]interface{} ChannelId string