Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { // ID is the unique identifier of the job ID uuid.UUID `json:"id" validate:"required,uuid"` // Type is the type of the job. It should be the value of job.Type.String Type string `json:"type" validate:"required"` // Payload is the data to be passed to the job Payload string `json:"payload" validate:"-"` // RetryCount is the number of times the job has been retried RetryCount int `json:"retry_count" validate:"-"` // Caller is the information about the caller of the job Caller string `json:"caller" validate:"required"` // CreatedAt is the time the job was created CreatedAt time.Time `json:"created_at" validate:"required"` }
func NewMessage ¶
NewMessage creates a new Message
Click to show internal directories.
Click to hide internal directories.