Documentation
¶
Index ¶
- Constants
- type ExtractionTask
- type Queue
- func (q *Queue) Close() error
- func (q *Queue) Drain()
- func (q *Queue) Health(ctx context.Context) error
- func (q *Queue) PublishExtractionTask(ctx context.Context, platform string) error
- func (q *Queue) PublishSyncTask(ctx context.Context, userID int) error
- func (q *Queue) StartConsumers(ctx context.Context, cfg *config.Config)
- type SyncTask
- type TaskType
Constants ¶
View Source
const ( TopicExtraction = "extraction-tasks" TopicSync = "sync-tasks" TopicHealth = "health-check-tasks" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtractionTask ¶
type ExtractionTask struct {
Platform string `json:"platform"`
}
Click to show internal directories.
Click to hide internal directories.