handlers

package
v0.0.0-...-11a7b2c Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDocumentsHandlers

func RegisterDocumentsHandlers(router *mux.Router, indexManager *fts.IndexManager) error

RegisterDocumentsesHandlers registers the index handlers.

func RegisterHandlers

func RegisterHandlers(router *mux.Router, config config.Config) error

func RegisterIndexHandlers

func RegisterIndexHandlers(router *mux.Router, indexManager *fts.IndexManager) error

RegisterIndexesHandlers registers the index handlers.

func RegisterIndexesHandlers

func RegisterIndexesHandlers(router *mux.Router, indexManager *fts.IndexManager) error

RegisterIndexesHandlers registeres the index handlers.

func RegisterSearchHandlers

func RegisterSearchHandlers(router *mux.Router, indexManager *fts.IndexManager) error

RegisterDocumentsesHandlers registers the index handlers.

func RegisterStatusHandlers

func RegisterStatusHandlers(router *mux.Router) error

Types

type DocumentHandler

type DocumentHandler struct {
	IndexManager *fts.IndexManager
}

IndexHandler represents the handler for an index.

func (*DocumentHandler) ServeHTTP

func (d *DocumentHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

ServeHTTP is the handler for the indexes entities.

type DocumentsHandler

type DocumentsHandler struct {
	IndexManager *fts.IndexManager
}

IndexHandler represents the handler for an index.

func (*DocumentsHandler) ServeHTTP

func (d *DocumentsHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

ServeHTTP is the handler for the indexes entities.

type GetStatusHandler

type GetStatusHandler struct{}

func (*GetStatusHandler) ServeHTTP

func (h *GetStatusHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type IndexHandler

type IndexHandler struct {
	IndexManager *fts.IndexManager
}

IndexHandler represents the handler for an index.

func (*IndexHandler) ServeHTTP

func (h *IndexHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

ServeHTTP is the handler for the indexes entities.

type IndexesHandler

type IndexesHandler struct {
	IndexManager *fts.IndexManager
}

IndexesHandler represents the handler for Indexes

func (*IndexesHandler) ServeHTTP

func (h *IndexesHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

ServeHTTP is the handler for the indexes entities.

type SearchHandler

type SearchHandler struct {
	IndexManager *fts.IndexManager
}

func (*SearchHandler) ServeHTTP

func (sh *SearchHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

ServeHTTP is the handler for the indexes entities.

type Status

type Status struct {
	Status string `json:"status"`
}

Jump to

Keyboard shortcuts

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