Documentation ¶
Index ¶
- func RegisterDocumentsHandlers(router *mux.Router, indexManager *fts.IndexManager) error
- func RegisterHandlers(router *mux.Router, config config.Config) error
- func RegisterIndexHandlers(router *mux.Router, indexManager *fts.IndexManager) error
- func RegisterIndexesHandlers(router *mux.Router, indexManager *fts.IndexManager) error
- func RegisterSearchHandlers(router *mux.Router, indexManager *fts.IndexManager) error
- func RegisterStatusHandlers(router *mux.Router) error
- type DocumentHandler
- type DocumentsHandler
- type GetStatusHandler
- type IndexHandler
- type IndexesHandler
- type SearchHandler
- type Status
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 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 ¶
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.