models

package
v0.0.0-...-d24e03e Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToJson

func ToJson(job Job) (string, error)

Types

type Job

type Job struct {
	Id      string `json:"id"`
	Type    string `json:"type"`
	Payload string `json:"payload"`
}

func NewJob

func NewJob(payload string, jobType string) Job

func ToJob

func ToJob(jobJs string) (*Job, error)

Jump to

Keyboard shortcuts

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