Compare commits
No commits in common. "71e40b932c9e0fdef87fc94748bcbc1edb591952" and "39829a734811871c33368fe23c2dae85e95f5e35" have entirely different histories.
71e40b932c
...
39829a7348
@ -5,12 +5,10 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
tasks "queues-go/app/storage/mongo/collections"
|
tasks "queues-go/app/storage/mongo/collections"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"go.mongodb.org/mongo-driver/bson"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type PutRequestBody struct {
|
type PutRequestBody struct {
|
||||||
Payload bson.M `json:"payload"`
|
Payload json.RawMessage `json:"payload"`
|
||||||
SecondsToExecute int `json:"seconds_to_execute"`
|
SecondsToExecute int `json:"seconds_to_execute"`
|
||||||
Delay *int `json:"delay"`
|
Delay *int `json:"delay"`
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@ type Task struct {
|
|||||||
|
|
||||||
type InsertedTask struct {
|
type InsertedTask struct {
|
||||||
Queue string `bson:"queue"`
|
Queue string `bson:"queue"`
|
||||||
Payload bson.M `bson:"payload"`
|
Payload interface{} `bson:"payload"`
|
||||||
PutAt time.Time `bson:"put_at"`
|
PutAt time.Time `bson:"put_at"`
|
||||||
AvailableFrom time.Time `bson:"available_from"`
|
AvailableFrom time.Time `bson:"available_from"`
|
||||||
SecondsToExecute int `bson:"seconds_to_execute"`
|
SecondsToExecute int `bson:"seconds_to_execute"`
|
||||||
|
Loading…
Reference in New Issue
Block a user