[feat] PkgVersion
This commit is contained in:
16
base/pkg_version.go
Normal file
16
base/pkg_version.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package base
|
||||
|
||||
type PkgVersion struct {
|
||||
Name string `db:"pkg"`
|
||||
Bundle string `db:"bundle"`
|
||||
Hash string `db:"hash"`
|
||||
FileName string `db:"filename"`
|
||||
SourceMapFileName string `db:"sourcemapFileName"`
|
||||
Imports []string `db:"imports"`
|
||||
VersionAt string `db:"version_at"`
|
||||
}
|
||||
|
||||
func (this PkgVersion) GetFile() []byte
|
||||
func (this PkgVersion) GetSourceMap() []byte
|
||||
|
||||
type GetPkgVersion func(pkg string) (PkgVersion, bool)
|
||||
Reference in New Issue
Block a user