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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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