model

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBJob

type DBJob struct {
	PoolName    string `spanner:"pool_name" json:"pool_name"`
	JobID       string `spanner:"job_id" json:"job_id"`
	Namespace   string `spanner:"namespace" json:"namespace"`
	Queue       string `spanner:"queue" json:"queue"`
	Body        []byte `spanner:"body" json:"body"`
	ExpiredTime int64  `spanner:"expired_time" json:"expired_time"`
	ReadyTime   int64  `spanner:"ready_time" json:"ready_time"`
	Tries       int64  `spanner:"tries" json:"tries"`
	CreatedTime int64  `spanner:"created_time" json:"created_time"`
}

func (*DBJob) TTL added in v1.0.14

func (j *DBJob) TTL(now int64) int64

type DBJobReq

type DBJobReq struct {
	PoolName  string
	Namespace string
	Queue     string
	ReadyTime int64
	Count     int64
}

Jump to

Keyboard shortcuts

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