Documentation ¶
Overview ¶
Package doc implemented fetch projects from VCS and genarate AST.
Index ¶
- Constants
- Variables
- func CheckDoc(broPath, tag string, rt requestType) (*hv.Package, error)
- func CodeEncode(code *string) *string
- func GetGithubCredentials() string
- func RenderFuncs(pdoc *hv.Package) []models.PkgFunc
- func SaveProject(pdoc *hv.Package, pfuncs []models.PkgFunc) (int64, error)
- func SetGithubCredentials(id, secret string)
Constants ¶
View Source
const ( RT_Human requestType = iota RT_Refresh )
Variables ¶
View Source
var (
HttpClient = &http.Client{Transport: httpTransport}
)
Functions ¶
func CheckDoc ¶
CheckDoc returns 'Package' by given import path and tag, or fetch from the VCS and render as needed. It returns error when error occurs in the underlying functions.
func CodeEncode ¶
func GetGithubCredentials ¶
func GetGithubCredentials() string
func SaveProject ¶
SaveProject saves project information to database.
func SetGithubCredentials ¶
func SetGithubCredentials(id, secret string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.