http

package
v0.0.0-...-609c32c Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UseIndex

func UseIndex(indexModules *index.Index) func(*Handler)

UseIndex specify index instance to use

func UseIndexNameIdentifier

func UseIndexNameIdentifier(indexNameIdentifier string) func(*Handler)

UseIndexNameIdentifier specify index name identifier used in the http router

Types

type Handler

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

Handler http handler main struct

func New

func New(options ...func(*Handler)) (newHTTPhandler *Handler)

New initialize new http instance

func (*Handler) CreateIndex

func (H *Handler) CreateIndex(context echo.Context) (err error)

CreateIndex handle http request for index creation

func (*Handler) GetIndex

func (H *Handler) GetIndex(context echo.Context) (err error)

GetIndex handle http request for index information

Jump to

Keyboard shortcuts

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