Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProducerDependencySet = wire.NewSet( NewUserImportProducer, NewUserExportProducer, NewUserReindexProducer, )
View Source
var QueueUserExport = "user-export"
View Source
var QueueUserImport = "user-import"
View Source
var QueueUserReindex = "user-reindex"
View Source
var TTL = 24 * time.Hour
Functions ¶
func RedisKeyForQueue ¶
func RedisKeyForTask ¶
Types ¶
type QueueItem ¶
type Task ¶
type Task struct { ID string `json:"id,omitempty"` AppID string `json:"app_id,omitempty"` CreatedAt *time.Time `json:"created_at,omitempty"` CompletedAt *time.Time `json:"completed_at,omitempty"` Status TaskStatus `json:"status,omitempty"` Input json.RawMessage `json:"input,omitempty"` Output json.RawMessage `json:"output,omitempty"` Error *apierrors.APIError `json:"error,omitempty"` }
func (*Task) ToQueueItem ¶
type TaskStatus ¶
type TaskStatus string
const ( TaskStatusPending TaskStatus = "pending" TaskStatusCompleted TaskStatus = "completed" )
type UserExportProducer ¶
type UserExportProducer struct {
*Producer
}
func NewUserExportProducer ¶
func NewUserExportProducer(redis *appredis.Handle, clock clock.Clock) *UserExportProducer
type UserImportProducer ¶
type UserImportProducer struct {
*Producer
}
func NewUserImportProducer ¶
func NewUserImportProducer(redis *appredis.Handle, clock clock.Clock) *UserImportProducer
type UserReindexProducer ¶
type UserReindexProducer struct {
*Producer
}
func NewUserReindexProducer ¶
func NewUserReindexProducer(redis *appredis.Handle, clock clock.Clock) *UserReindexProducer
Click to show internal directories.
Click to hide internal directories.