resources

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler handles http calls

func NewHandler

func NewHandler(elasticService service.EsService, allowedConceptTypes []string, publicAPIHost string) (*Handler, error)

func (*Handler) Close

func (h *Handler) Close()

Close terminates the underlying ES bulk processor

func (*Handler) DeleteData

func (h *Handler) DeleteData(writer http.ResponseWriter, request *http.Request)

DeleteData handles a delete for a concept

func (*Handler) GetAllIds

func (h *Handler) GetAllIds(writer http.ResponseWriter, request *http.Request)

func (*Handler) LoadBulkData

func (h *Handler) LoadBulkData(w http.ResponseWriter, r *http.Request)

LoadBulkData write a concept to ES via the ES Bulk API

func (*Handler) LoadData

func (h *Handler) LoadData(w http.ResponseWriter, r *http.Request)

LoadData processes a single ES concept entity

func (*Handler) LoadMetrics

func (h *Handler) LoadMetrics(w http.ResponseWriter, r *http.Request)

LoadMetrics updates a concept with new metric data

func (*Handler) ReadData

func (h *Handler) ReadData(writer http.ResponseWriter, request *http.Request)

Jump to

Keyboard shortcuts

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