service

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleClazzQueryWithRegex added in v0.12.0

func HandleClazzQueryWithRegex(c *gin.Context)

@Summary clazz query @Param repo query string true "repo" @Param rev query string true "rev" @Param field query string true "field" @Param regex query string true "regex" @Produce json @Success 200 {array} sibyl2.ClazzWithPath @Router /api/v1/clazz/with/regex [get] @Tags RegexQuery

func HandleClazzUpload added in v0.10.0

func HandleClazzUpload(c *gin.Context)

func HandleClazzesQuery added in v0.11.0

func HandleClazzesQuery(c *gin.Context)

@Summary class query @Param repo query string true "repo" @Param rev query string true "rev" @Param file query string true "file" @Produce json @Success 200 {array} sibyl2.ClazzWithPath @Router /api/v1/clazz [get] @Tags BasicQuery

func HandleFileQuery

func HandleFileQuery(c *gin.Context)

@Summary file query @Param repo query string true "repo" @Param rev query string true "rev" @Param includeRegex query string false "includeRegex" @Produce json @Success 200 {array} string @Router /api/v1/file [get] @Tags Scope

func HandleFuncCtxQueryWithRegex added in v0.12.0

func HandleFuncCtxQueryWithRegex(c *gin.Context)

@Summary func ctx query @Param repo query string true "repo" @Param rev query string true "rev" @Param field query string true "field" @Param regex query string true "regex" @Produce json @Success 200 {array} sibyl2.FunctionContext @Router /api/v1/funcctx/with/regex [get] @Tags RegexQuery

func HandleFunctionContextQueryWithReferenceCount added in v0.12.0

func HandleFunctionContextQueryWithReferenceCount(c *gin.Context)

@Summary funcctx query by ref @Param repo query string true "repo" @Param rev query string true "rev" @Param moreThan query int true "moreThan" @Param lessThan query int true "lessThan" @Produce json @Success 200 {array} sibyl2.FunctionContextSlim @Router /api/v1/funcctx/with/reference/count [get] @Tags ReferenceQuery

func HandleFunctionContextQueryWithReferencedCount added in v0.12.0

func HandleFunctionContextQueryWithReferencedCount(c *gin.Context)

@Summary funcctx query by referenced @Param repo query string true "repo" @Param rev query string true "rev" @Param moreThan query int true "moreThan" @Param lessThan query int true "lessThan" @Produce json @Success 200 {array} sibyl2.FunctionContextSlim @Router /api/v1/funcctx/with/referenced/count [get] @Tags ReferenceQuery

func HandleFunctionContextUpload

func HandleFunctionContextUpload(c *gin.Context)

func HandleFunctionContextsQuery added in v0.11.0

func HandleFunctionContextsQuery(c *gin.Context)

@Summary func ctx query @Param repo query string true "repo" @Param rev query string true "rev" @Param file query string true "file" @Param lines query string false "specific lines" @Produce json @Success 200 {array} sibyl2.FunctionContextSlim @Router /api/v1/funcctx [get] @Tags BasicQuery

func HandleFunctionQueryWithRegex added in v0.12.0

func HandleFunctionQueryWithRegex(c *gin.Context)

@Summary func query @Param repo query string true "repo" @Param rev query string true "rev" @Param field query string true "field" @Param regex query string true "regex" @Produce json @Success 200 {array} sibyl2.FunctionWithPath @Router /api/v1/func/with/regex [get] @Tags RegexQuery

func HandleFunctionQueryWithSignature added in v0.11.0

func HandleFunctionQueryWithSignature(c *gin.Context)

@Summary func query @Param repo query string true "repo" @Param rev query string true "rev" @Param signature query string true "signature" @Produce json @Success 200 {object} sibyl2.FunctionWithPath @Router /api/v1/func/with/signature [get] @Tags SignatureQuery

func HandleFunctionSignaturesQuery added in v0.11.0

func HandleFunctionSignaturesQuery(c *gin.Context)

@Summary func query @Param repo query string true "repo" @Param rev query string true "rev" @Param regex query string true "regex" @Produce json @Success 200 {array} string @Router /api/v1/func/signature [get] @Tags SignatureQuery

func HandleFunctionUpload added in v0.10.0

func HandleFunctionUpload(c *gin.Context)

func HandleFunctionsQuery

func HandleFunctionsQuery(c *gin.Context)

@Summary func query @Param repo query string true "repo" @Param rev query string true "rev" @Param file query string true "file" @Param lines query string false "specific lines" @Produce json @Success 200 {array} object.FunctionWithSignature @Router /api/v1/func [get] @Tags BasicQuery

func HandlePing

func HandlePing(c *gin.Context)

@BasePath / @Summary ping example @Produce json @Success 200 @Router /ops/ping [get] @Tags Ops

func HandleRepoDelete added in v0.12.0

func HandleRepoDelete(c *gin.Context)

@Summary repo delete @Param repo query string true "rev delete by repo" @Produce json @Success 200 @Router /api/v1/repo [delete] @Tags Scope

func HandleRepoQuery

func HandleRepoQuery(c *gin.Context)

@Summary repo query @Produce json @Success 200 {array} string @Router /api/v1/repo [get] @Tags Scope

func HandleRevDelete added in v0.12.0

func HandleRevDelete(c *gin.Context)

@Summary rev delte @Param repo query string true "repo" @Param rev query string true "rev" @Produce json @Success 200 @Router /api/v1/rev [delete] @Tags Scope

func HandleRevQuery

func HandleRevQuery(c *gin.Context)

@Summary rev query @Param repo query string true "rev search by repo" @Produce json @Success 200 {array} string @Router /api/v1/rev [get] @Tags Scope

func HandleRevStatQuery added in v0.12.0

func HandleRevStatQuery(c *gin.Context)

@Summary rev stat @Param repo query string true "repo" @Param rev query string true "rev" @Produce json @Success 200 {object} RevStat @Router /api/v1/rev/stat [get] @Tags StatQuery

func HandleStatusUpload

func HandleStatusUpload(c *gin.Context)

@BasePath / @Summary upload status query @Produce json @Success 200 @Router /ops/monitor/upload [get] @Tags Ops

func HandleVersion added in v0.11.0

func HandleVersion(c *gin.Context)

@BasePath / @Summary sibyl version @Produce json @Success 200 @Router /ops/version [get] @Tags Ops

func InitService

func InitService(_ object.ExecuteConfig, ctx context.Context, driver binding.Driver, q queue.Queue)

Types

type RevStat added in v0.12.0

type RevStat struct {
	Info          *object.RevInfo `json:"info"`
	FileCount     int             `json:"fileCount"`
	FunctionCount int             `json:"functionCount"`
}

type UploadStats

type UploadStats struct {
	FuncUnitTodo    int `json:"funcUnitTodo"`
	FuncCtxUnitTodo int `json:"funcCtxUnitTodo"`
	ClazzUnitTodo   int `json:"clazzUnitTodo"`
}

Jump to

Keyboard shortcuts

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