job

package
v0.0.0-...-db1d7af Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2014 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Getter

type Getter interface {
	Guid() string
	CreatedAt() time.Time
	Url() string
	Status() string
}

type Model

type Model interface {
	Getter
}

func NewModel

func NewModel() Model

func NewModelFromRecord

func NewModelFromRecord(record Record) Model

type Record

type Record struct {
	Id        int64
	Guid      string
	CreatedAt time.Time
	LastError string
	LockedAt  time.Time
}

func NewRecord

func NewRecord() Record

func (Record) TableName

func (record Record) TableName() string

type Repo

type Repo interface {
	FindByGuid(guid string) (job Model, found bool)
	Save(Model) error
}

func NewRepo

func NewRepo(db gorm.DB) Repo

Jump to

Keyboard shortcuts

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