apps

package
v0.0.0-...-2cf57f6 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrAppNameDuplicates means app names duplicate
	ErrAppNameDuplicates = xerrors.New("app names duplicate")
)

Functions

This section is empty.

Types

type AppStore

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

func NewAppStore

func NewAppStore(db sqlx.ExtContext) *AppStore

func (*AppStore) AddApp

func (ss *AppStore) AddApp(s *types.App) (seqID int, id string, err error)

func (*AppStore) FindAppByID

func (ss *AppStore) FindAppByID(id string) (*types.App, error)

func (*AppStore) GetApp

func (ss *AppStore) GetApp(seq int) (*types.App, error)

func (*AppStore) GetUpdatedTime

func (ss *AppStore) GetUpdatedTime(seq int) (time.Time, error)

func (*AppStore) UpdateApp

func (ss *AppStore) UpdateApp(seq int, s *types.AppSpec) error

Jump to

Keyboard shortcuts

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