models

package
v0.2.15 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunModel

type RunModel struct {
	Timeout time.Duration
	// contains filtered or unexported fields
}

func NewRunModel

func NewRunModel(c *gorm.DB, defaultTimeout time.Duration) *RunModel

func (*RunModel) Create

func (rm *RunModel) Create(job string) (uint, error)

func (*RunModel) Get

func (rm *RunModel) Get(id uint) (*schema.Run, error)

func (*RunModel) UpdateRunRetries

func (rm *RunModel) UpdateRunRetries(id uint, retries uint) error

Jump to

Keyboard shortcuts

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