Documentation ¶
Index ¶
- type BaseTask
- func (t *BaseTask) GetDescription() string
- func (t *BaseTask) GetFailureCount() int
- func (t *BaseTask) GetId() string
- func (t *BaseTask) GetLogLabels() map[string]string
- func (t *BaseTask) GetMetadata() interface{}
- func (t *BaseTask) GetQueueName() string
- func (t *BaseTask) GetQueuedAt() time.Time
- func (t *BaseTask) GetType() TaskType
- func (t *BaseTask) IncrementFailureCount()
- func (t *BaseTask) UpdateFailureMessage(msg string)
- func (t *BaseTask) UpdateMetadata(meta interface{})
- func (t *BaseTask) WithLogLabels(labels map[string]string) *BaseTask
- func (t *BaseTask) WithMetadata(metadata interface{}) *BaseTask
- func (t *BaseTask) WithQueueName(name string) *BaseTask
- func (t *BaseTask) WithQueuedAt(queuedAt time.Time) Task
- type MetadataDescriptable
- type Task
- type TaskType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseTask ¶
type BaseTask struct { Id string Type TaskType LogLabels map[string]string FailureCount int // Failed executions count FailureMessage string QueueName string QueuedAt time.Time Metadata interface{} }
func (*BaseTask) GetDescription ¶
func (*BaseTask) GetFailureCount ¶
func (*BaseTask) GetLogLabels ¶
func (*BaseTask) GetMetadata ¶
func (t *BaseTask) GetMetadata() interface{}
func (*BaseTask) GetQueueName ¶
func (*BaseTask) GetQueuedAt ¶
func (*BaseTask) IncrementFailureCount ¶
func (t *BaseTask) IncrementFailureCount()
func (*BaseTask) UpdateFailureMessage ¶
func (*BaseTask) UpdateMetadata ¶
func (t *BaseTask) UpdateMetadata(meta interface{})
func (*BaseTask) WithLogLabels ¶
func (*BaseTask) WithMetadata ¶
func (*BaseTask) WithQueueName ¶
type MetadataDescriptable ¶
type MetadataDescriptable interface {
GetDescription() string
}
type Task ¶
type Task interface { GetId() string GetType() TaskType IncrementFailureCount() UpdateFailureMessage(msg string) GetFailureCount() int GetLogLabels() map[string]string GetQueueName() string GetQueuedAt() time.Time WithQueuedAt(time.Time) Task GetMetadata() interface{} UpdateMetadata(interface{}) GetDescription() string }
Click to show internal directories.
Click to hide internal directories.