handler

package
v0.0.0-...-04d6450 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func ACK

func ACK(c *gin.Context)

ACK serialize a response body carrying `Acknowledged=true` into the HTTP context and set the status code to 200

func BadRequest

func BadRequest(c *gin.Context, reason string)

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 BulkHandler(c *gin.Context)

func ClusterInfoHandler

func ClusterInfoHandler(c *gin.Context)

func ClusterNodesInfoHandler

func ClusterNodesInfoHandler(c *gin.Context)

func ClusterStatusHandler

func ClusterStatusHandler(c *gin.Context)

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 CreateIndexHandler(c *gin.Context)

func CreateIndexTemplateHandler

func CreateIndexTemplateHandler(c *gin.Context)

func DeleteIndexHandler

func DeleteIndexHandler(c *gin.Context)

func DeleteIndexTemplateHandler

func DeleteIndexTemplateHandler(c *gin.Context)

func GetAliasHandler

func GetAliasHandler(c *gin.Context)

func GetIndexHandler

func GetIndexHandler(c *gin.Context)

func GetIndexTemplateHandler

func GetIndexTemplateHandler(c *gin.Context)

func IndexExistHandler

func IndexExistHandler(c *gin.Context)

func IndexTemplateExistHandler

func IndexTemplateExistHandler(c *gin.Context)

func IngestHandler

func IngestHandler(c *gin.Context)

func InternalServerError

func InternalServerError(c *gin.Context, reason string)

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 ManageAliasHandler(c *gin.Context)

func NotFound

func NotFound(c *gin.Context, resource, ID string)

NotFound serialize a response body carrying resource information not found into the HTTP context and set the status code to 404

func OK

func OK(c *gin.Context, response any)

OK serialize a given struct as JSON into the HTTP context and set the status code to 200

func QueryHandler

func QueryHandler(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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