appDep

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Url_Gitlab = "/api/v4/projects/%d/repository/files/%s?ref=%s"
)

Variables

View Source
var AppDep *appDep

Functions

func Init

func Init()

Init ..

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"`
}

Jump to

Keyboard shortcuts

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