Documentation ¶
Index ¶
- func ByID(context *gin.Context, elasticClient *elastic.Client, myid string) (models.DocumentResponse, int32, string)
- func ByQuery(context *gin.Context, elasticClient *elastic.Client, query string)
- func ByStatus(context *gin.Context, elasticClient *elastic.Client, myStatusCode string)
- func ConvertDocumentRequestToString(doc models.DocumentRequest) string
- func CreateNewDoc(context *gin.Context, elasticClient *elastic.Client, ...) (string, int32, string)
- func GetLogs(context *gin.Context, elasticClient *elastic.Client, jobID string) ([]models.HPALog, int, string)
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 ConvertDocumentRequestToString ¶
func ConvertDocumentRequestToString(doc models.DocumentRequest) string
ConvertDocumentRequestToString ... convert the request to string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.