Documentation ¶
Overview ¶
Package handler is responsible for handling HTTP requests about ingestion
Package handler is about how to handle HTTP requests for meta ¶
Package handler is about how to handle HTTP requests for meta ¶
Package handler is about how to handle HTTP requests for meta ¶
Package handler is responsible for handling HTTP requests about ingestion ¶
Package handler is responsible for handling HTTP requests about query
Index ¶
- func ACK(c *gin.Context)
- func BadRequest(c *gin.Context, reason string)
- func BulkHandler(c *gin.Context)
- func ClusterInfoHandler(c *gin.Context)
- func ClusterNodesInfoHandler(c *gin.Context)
- func ClusterStatusHandler(c *gin.Context)
- func CreateIndexHandler(c *gin.Context)
- func CreateIndexTemplateHandler(c *gin.Context)
- func DeleteIndexHandler(c *gin.Context)
- func DeleteIndexTemplateHandler(c *gin.Context)
- func GetAliasHandler(c *gin.Context)
- func GetIndexHandler(c *gin.Context)
- func GetIndexTemplateHandler(c *gin.Context)
- func IndexExistHandler(c *gin.Context)
- func IndexTemplateExistHandler(c *gin.Context)
- func IngestHandler(c *gin.Context)
- func InternalServerError(c *gin.Context, reason string)
- func ManageAliasHandler(c *gin.Context)
- func NotFound(c *gin.Context, resource, ID string)
- func OK(c *gin.Context, response any)
- func QueryHandler(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ACK ¶
ACK serialize a response body carrying `Acknowledged=true` into the HTTP context and set the status code to 200
func BadRequest ¶
BadRequest serialize a response body carrying the reason for requesting incorrectly into the HTTP context and set the status code to 400
func BulkHandler ¶
func ClusterInfoHandler ¶
func ClusterNodesInfoHandler ¶
func ClusterStatusHandler ¶
ClusterStatusHandler is used to view the status of the cluster. Right now this is a pseudo-implementation that the started cluster is always considered healthy until we support cluster mode.
func CreateIndexHandler ¶
func DeleteIndexHandler ¶
func GetAliasHandler ¶
func GetIndexHandler ¶
func GetIndexTemplateHandler ¶
func IndexExistHandler ¶
func IngestHandler ¶
func InternalServerError ¶
InternalServerError serialize a response body carrying the reason of server exception into the HTTP context and set the status code to 500
func ManageAliasHandler ¶
func NotFound ¶
NotFound serialize a response body carrying resource information not found into the HTTP context and set the status code to 404
func QueryHandler ¶
Types ¶
This section is empty.