Documentation ¶
Index ¶
Constants ¶
View Source
const (
Url_Gitlab = "/api/v4/projects/%d/repository/files/%s?ref=%s"
)
Variables ¶
View Source
var AppDep *appDep
Functions ¶
Types ¶
type DepApp ¶
type DepApp interface { ParseDepFile(app db.AppInfo) ([]*db.AppPackage, error) // 获取依赖文件内容并解析 SaveToMysql(aid int, records []*db.AppPackage) error // 解析结果存储到mysql }
DepApp ..
type FileContent ¶
type FileContent struct { FileName string `json:"file_name"` FilePath string `json:"file_path"` Size int64 `json:"size"` Encoding string `json:"encoding"` Content string `json:"content"` Ref string `json:"ref"` BlobId string `json:"blob_id"` CommitId string `json:"commit_id"` LastCommitId string `json:"last_commit_id"` }
Click to show internal directories.
Click to hide internal directories.