app

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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PACKGE_STATE_PENDING = "PENDING"
	PACKGE_STATE_STAGED  = "STAGED"
	PACKGE_STATE_FAILED  = "FAILED"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Getter

type Getter interface {
	Guid() string
	PackageHash() string
	PackageState() string
}

type Model

type Model interface {
	Getter
	Setter
}

func NewModel

func NewModel() Model

func NewModelFromRecord

func NewModelFromRecord(record Record) Model

type Record

type Record struct {
	Id           int64
	Guid         string
	PackageHash  string
	PackageState string
}

func NewRecord

func NewRecord() Record

func (Record) TableName

func (record Record) TableName() string

type Repo

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

func NewRepo

func NewRepo(db gorm.DB) Repo

type Setter

type Setter interface {
	SetPackageHash(string)
}

Jump to

Keyboard shortcuts

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