http

package
v0.0.0-...-8debf26 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2014 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexByName

func IndexByName(name string) bleve.Index

func IndexNames

func IndexNames() []string

func RegisterIndexName

func RegisterIndexName(name string, index bleve.Index)

func UnregisterIndexByName

func UnregisterIndexByName(name string) bleve.Index

Types

type CreateIndexHandler

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

func NewCreateIndexHander

func NewCreateIndexHander(basePath string) *CreateIndexHandler

func (*CreateIndexHandler) ServeHTTP

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

type DebugDocumentHandler

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

DebugDocumentHandler allows you to debug the index content for a given document id. the document ID should be mapped to the mux router URL with name "docId"

func NewDebugDocumentHandler

func NewDebugDocumentHandler(defaultIndexName string) *DebugDocumentHandler

func (*DebugDocumentHandler) ServeHTTP

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

type DeleteIndexHandler

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

func NewDeleteIndexHandler

func NewDeleteIndexHandler(basePath string) *DeleteIndexHandler

func (*DeleteIndexHandler) ServeHTTP

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

type DocCountHandler

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

func NewDocCountHandler

func NewDocCountHandler(defaultIndexName string) *DocCountHandler

func (*DocCountHandler) ServeHTTP

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

type DocDeleteHandler

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

func NewDocDeleteHandler

func NewDocDeleteHandler(defaultIndexName string) *DocDeleteHandler

func (*DocDeleteHandler) ServeHTTP

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

type DocGetHandler

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

func NewDocGetHandler

func NewDocGetHandler(defaultIndexName string) *DocGetHandler

func (*DocGetHandler) ServeHTTP

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

type DocIndexHandler

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

func NewDocIndexHandler

func NewDocIndexHandler(defaultIndexName string) *DocIndexHandler

func (*DocIndexHandler) ServeHTTP

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

type GetIndexHandler

type GetIndexHandler struct{}

func NewGetIndexHandler

func NewGetIndexHandler() *GetIndexHandler

func (*GetIndexHandler) ServeHTTP

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

type ListFieldsHandler

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

func NewListFieldsHandler

func NewListFieldsHandler(defaultIndexName string) *ListFieldsHandler

func (*ListFieldsHandler) ServeHTTP

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

type ListIndexesHandler

type ListIndexesHandler struct{}

func NewListIndexesHander

func NewListIndexesHander() *ListIndexesHandler

func (*ListIndexesHandler) ServeHTTP

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

type SearchHandler

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

SearchHandler can handle search requests sent over HTTP the index name can be selected in the URL by mapping a gorilla mux var, or it can be set manually with by setting the defaultIndex value

func NewSearchHandler

func NewSearchHandler(defaultIndexName string) *SearchHandler

func (*SearchHandler) ServeHTTP

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

Jump to

Keyboard shortcuts

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