Use consts for route names and templates.

This commit is contained in:
mikestefanello 2023-12-16 11:07:20 -05:00
parent a787d5dc7f
commit 60c8aefd49
30 changed files with 135 additions and 82 deletions

View file

@ -23,7 +23,7 @@ type (
task struct {
client *TaskClient
typ string
payload interface{}
payload any
periodic *string
queue *string
maxRetries *int
@ -75,7 +75,7 @@ func (t *TaskClient) New(typ string) *task {
}
// Payload sets the task payload data which will be sent to the task handler
func (t *task) Payload(payload interface{}) *task {
func (t *task) Payload(payload any) *task {
t.payload = payload
return t
}