utils

package
v1.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2025 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertArgs

func ConvertArgs(args []contractsqueue.Arg) []any

func JsonToTask

func JsonToTask(payload string, jobStorer contractsqueue.JobStorer, json foundation.Json) (contractsqueue.Task, error)

func TaskToJson

func TaskToJson(task contractsqueue.Task, json foundation.Json) (string, error)

Types

type Job

type Job struct {
	Delay     *time.Time           `json:"delay"`
	Signature string               `json:"signature"`
	Args      []contractsqueue.Arg `json:"args"`
}

type Task

type Task struct {
	Job
	UUID  string `json:"uuid"`
	Chain []Job  `json:"chain"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL