release

package
v0.0.0-...-4cf1bdd Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2013 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DNS    = "root:lijinsong@/ota?charset=utf8"
	DRIVER = "mysql"
)

Variables

This section is empty.

Functions

func DeleteArbiByCpId

func DeleteArbiByCpId(dal *Dal, cp_id int64) (int64, error)

func DeleteCp

func DeleteCp(dal *Dal, delete_sql string) (int64, error)

func DeleteCpByPath

func DeleteCpByPath(dal *Dal, path string) (int64, error)

func DeleteCpComponent

func DeleteCpComponent(dal *Dal, delete_sql string) (int64, error)

func DeleteGrbiByCpId

func DeleteGrbiByCpId(dal *Dal, cp_id int64) (int64, error)

func DeleteRficByCpId

func DeleteRficByCpId(dal *Dal, cp_id int64) (int64, error)

Types

type Arbi

type Arbi struct {
	CpComponent
}

func FindArbi

func FindArbi(dal *Dal, query string) (*Arbi, error)

func FindArbiByCpId

func FindArbiByCpId(dal *Dal, cp_id int64) ([]*Arbi, error)

func FindArbiByPath

func FindArbiByPath(dal *Dal, path string) (*Arbi, error)

func FindArbiList

func FindArbiList(dal *Dal, query string) ([]*Arbi, error)

func (*Arbi) Delete

func (arbi *Arbi) Delete(dal *Dal) (int64, error)

func (*Arbi) Save

func (arbi *Arbi) Save(dal *Dal) (int64, error)

func (Arbi) String

func (arbi Arbi) String() string

type CpComponent

type CpComponent struct {
	Id           int64
	CpId         int64
	Flag         int
	LastModifyTs int64
	RelPath      string
}

type CpRelease

type CpRelease struct {
	Id            int64
	Mode          string
	Sim           string
	Version       string
	VersionScalar int64
	Flag          int
	LastModifyTs  int64
	RelPath       string
	Prefix        string
}

func FindCpRelease

func FindCpRelease(dal *Dal, query string) (*CpRelease, error)

func FindCpReleaseById

func FindCpReleaseById(dal *Dal, id string) (*CpRelease, error)

func FindCpReleaseByPath

func FindCpReleaseByPath(dal *Dal, path string) (*CpRelease, error)

func FindCpReleaseList

func FindCpReleaseList(dal *Dal, query string) ([]*CpRelease, error)

func (*CpRelease) Delete

func (cp *CpRelease) Delete(dal *Dal) (int64, error)

func (*CpRelease) LoadSelfFromFileEvent

func (cp *CpRelease) LoadSelfFromFileEvent(event *fsnotify.FileEvent) error

func (*CpRelease) Save

func (cp *CpRelease) Save(dal *Dal) (int64, error)

func (CpRelease) String

func (cp CpRelease) String() string

func (*CpRelease) Update

func (cp *CpRelease) Update(dal *Dal) (int64, error)

type Dal

type Dal struct {
	DB *sql.DB
}

func NewDal

func NewDal() (*Dal, error)

func (*Dal) Close

func (dal *Dal) Close()

type Grbi

type Grbi struct {
	CpComponent
}

func FindGrbi

func FindGrbi(dal *Dal, query string) (*Grbi, error)

func FindGrbiByCpId

func FindGrbiByCpId(dal *Dal, cp_id int64) ([]*Grbi, error)

func FindGrbiByPath

func FindGrbiByPath(dal *Dal, path string) (*Grbi, error)

func FindGrbiList

func FindGrbiList(dal *Dal, query string) ([]*Grbi, error)

func (*Grbi) Delete

func (grbi *Grbi) Delete(dal *Dal) (int64, error)

func (*Grbi) Save

func (grbi *Grbi) Save(dal *Dal) (int64, error)

func (Grbi) String

func (grbi Grbi) String() string

type Rfic

type Rfic struct {
	CpComponent
}

func FindRfic

func FindRfic(dal *Dal, query string) (*Rfic, error)

func FindRficByCpId

func FindRficByCpId(dal *Dal, cp_id int64) ([]*Rfic, error)

func FindRficByPath

func FindRficByPath(dal *Dal, path string) (*Rfic, error)

func FindRficList

func FindRficList(dal *Dal, query string) ([]*Rfic, error)

func (*Rfic) Delete

func (rfic *Rfic) Delete(dal *Dal) (int64, error)

func (*Rfic) Save

func (rfic *Rfic) Save(dal *Dal) (int64, error)

func (Rfic) String

func (rfic Rfic) String() string

Jump to

Keyboard shortcuts

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