version

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.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 Dao

type Dao struct {
	// contains filtered or unexported fields
}

Dao is a version dao

func New

func New(c *conf.Config) (d *Dao)

New new a version dao and return.

func (*Dao) All

func (d *Dao) All(ctx context.Context) (ver map[int8][]*version.Version, err error)

GetVersion get version.

func (*Dao) Close

func (dao *Dao) Close()

Close close db resource.

func (*Dao) Incrementals

func (d *Dao) Incrementals(ctx context.Context) (ver map[int8]map[string][]*version.Incremental, err error)

Incrementals version incrementals

func (*Dao) Limits

func (d *Dao) Limits(ctx context.Context) (res map[int][]*version.UpdateLimit, err error)

Limits version update limits

func (*Dao) Rn

func (d *Dao) Rn(ctx context.Context) (ver map[string]map[string]*version.Rn, err error)

Rn version rn

func (*Dao) Sos

func (d *Dao) Sos(ctx context.Context) (ver map[string][]*version.VersionSo, err error)

GetSos get version_so

func (*Dao) Updates

func (d *Dao) Updates(ctx context.Context) (ver map[int8]map[string][]*version.VersionUpdate, err error)

GetUpdate get active version AND version_update

Jump to

Keyboard shortcuts

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