Skip to content

Instantly share code, notes, and snippets.

@rishabh-gupta2
Created March 30, 2021 12:00
Show Gist options
  • Save rishabh-gupta2/e4d39e60d97587f396dd127de8923b40 to your computer and use it in GitHub Desktop.
Save rishabh-gupta2/e4d39e60d97587f396dd127de8923b40 to your computer and use it in GitHub Desktop.
Outbox Job struct
type Job struct {
Id string `json:"id"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
HandlerName string `json:"handler_name"`
Status JobStatus `json:"status" sql:"DEFAULT:pending"`
HandlerSerialized string `json:"handler_serialized"`
NextAttemptAt int64 `json:"next_attempt_at"`
NumAttempts int `json:"num_attempts"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment