search

package
v0.0.0-...-3eef760 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByID

func ByID(context *gin.Context, elasticClient *elastic.Client, myid string) (models.DocumentResponse, int32, string)

ByID .... search elastic search via id or jobid error code: 0 find

1 not found
2 error

func ByQuery

func ByQuery(context *gin.Context, elasticClient *elastic.Client, query string)

ByQuery .... search by elasticsearch query

func ByStatus

func ByStatus(context *gin.Context, elasticClient *elastic.Client, myStatusCode string)

ByStatus .... This will be used by backend python model, search by open status

func ConvertDocumentRequestToString

func ConvertDocumentRequestToString(doc models.DocumentRequest) string

ConvertDocumentRequestToString ... convert the request to string

func CreateNewDoc

func CreateNewDoc(context *gin.Context, elasticClient *elastic.Client, doc models.DocumentRequest) (string, int32, string)

CreateNewDoc .... create new request

func GetLogs

func GetLogs(context *gin.Context, elasticClient *elastic.Client, jobID string) ([]models.HPALog, int, string)

GetLogs ... get HPA logs by jobId error code: 0 find

1 not found
2 error

Types

This section is empty.

Jump to

Keyboard shortcuts

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