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) GetType() TaskType
- func (t *BaseTask) IncrementFailureCount()
- func (t *BaseTask) WithLogLabels(labels map[string]string) *BaseTask
- func (t *BaseTask) WithMetadata(metadata interface{}) *BaseTask
- func (t *BaseTask) WithQueueName(name string) *BaseTask
- 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 QueueName string Metadata interface{} }
func (*BaseTask) GetDescription ¶
func (*BaseTask) GetFailureCount ¶
func (*BaseTask) GetLogLabels ¶
func (*BaseTask) GetMetadata ¶
func (t *BaseTask) GetMetadata() interface{}
func (*BaseTask) GetQueueName ¶
func (*BaseTask) IncrementFailureCount ¶
func (t *BaseTask) IncrementFailureCount()
func (*BaseTask) WithLogLabels ¶
func (*BaseTask) WithMetadata ¶
func (*BaseTask) WithQueueName ¶
type MetadataDescriptable ¶
type MetadataDescriptable interface {
GetDescription() string
}
Click to show internal directories.
Click to hide internal directories.