service

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleFileQuery

func HandleFileQuery(c *gin.Context)

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

func HandleFunctionContextUpload

func HandleFunctionContextUpload(c *gin.Context)

func HandleFunctionCtxQuery

func HandleFunctionCtxQuery(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.FunctionContext @Router /api/v1/funcctx [get] @Tags MAIN

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 MAIN

func HandlePing

func HandlePing(c *gin.Context)

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

func HandleRepoFuncUpload

func HandleRepoFuncUpload(c *gin.Context)

func HandleRepoQuery

func HandleRepoQuery(c *gin.Context)

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

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 MAIN

func HandleStatusUpload

func HandleStatusUpload(c *gin.Context)

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

func InitService

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

Types

type UploadStats

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

Jump to

Keyboard shortcuts

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