Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultStater = SqliteStater(conf.GetAppStateDbFile()) Installed = DefaultStater.Installed Uninstalled = DefaultStater.Uninstalled Required = DefaultStater.Required )
Functions ¶
This section is empty.
Types ¶
type AppStater ¶
type AppStater interface { Required(versionRequired ...VersionRequired) (err error) Installed(appID, versionID string, versionNo uint) (err error) Uninstalled(appID, versionID string) (err error) }
func SqliteStater ¶
type AppVersion ¶
type AppVersion struct { VersionID string `db:"version_id" json:"version_id"` // 版本ID VersionNo uint `db:"version_no" json:"version_no"` // 版本No AppID string `db:"app_id" json:"app_id"` // 应用ID }
func (AppVersion) Version ¶
func (av AppVersion) Version() (version string)
type VersionRequired ¶
func (VersionRequired) Version ¶
func (ar VersionRequired) Version() (version string)
Click to show internal directories.
Click to hide internal directories.