models

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	ID uuid.UUID // a UUID v7 to identify the job
	// contains filtered or unexported fields
}

Job is a struct that holds all the data about the job and other metadata necessary

func New

func New(data any) (*Job, error)

func (*Job) GetData

func (j *Job) GetData() (any, error)

func (*Job) GetUpdatedAt

func (j *Job) GetUpdatedAt() (time.Time, error)

func (*Job) SetData

func (j *Job) SetData(d any) error

func (*Job) SetUpdatedAt

func (j *Job) SetUpdatedAt(t time.Time) error

Jump to

Keyboard shortcuts

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