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) InvalidateContestsCache(ctx context.Context, platform string) 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"`
}
type Queue ¶
type Queue struct {
Producer *kafka.Writer
DB *pgxpool.Pool
Syncer *sync.Syncer
// contains filtered or unexported fields
}
func (*Queue) InvalidateContestsCache ¶ added in v1.4.0
func (*Queue) PublishExtractionTask ¶
func (*Queue) PublishSyncTask ¶
Click to show internal directories.
Click to hide internal directories.