Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IngestHandler ¶
type IngestHandler struct {
// contains filtered or unexported fields
}
IngestHandler provides request handling functionality for the ingest server that is common to all protocols
func NewIngestHandler ¶
func NewIngestHandler(indexer indexer.Interface, ingester *ingest.Ingester, registry *registry.Registry) *IngestHandler
func (*IngestHandler) IndexContent ¶
func (h *IngestHandler) IndexContent(ctx context.Context, data []byte) error
IndexContent handles an IngestRequest
Returning error is the same as return apierror.New(err, http.StatusBadRequest)
func (*IngestHandler) RegisterProvider ¶
func (h *IngestHandler) RegisterProvider(ctx context.Context, data []byte) error
Click to show internal directories.
Click to hide internal directories.