service

package
v0.0.0-...-683a4be Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: GPL-3.0 Imports: 7 Imported by: 1

Documentation

Overview

Package service is where we handle every incoming services that are defined in router package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCreateIndex

func HandleCreateIndex(w http.ResponseWriter, r *http.Request)

HandleCreateIndex handles create index (from internal endpoint)

func HandleKeywordSuggestion

func HandleKeywordSuggestion(w http.ResponseWriter, r *http.Request)

func HandlePing

func HandlePing(w http.ResponseWriter, r *http.Request)

HandlePing is the handler for a ping endpoint

func HandleSearch

func HandleSearch(w http.ResponseWriter, r *http.Request)

HandleSearch handles the search for a document id (from internal & external endpoint)

func HandleUpdateIndex

func HandleUpdateIndex(w http.ResponseWriter, r *http.Request)

HandleUpdateIndex handles update index (from internal endpoint)

Types

type ResponsePayload

type ResponsePayload struct {
	ErrorMessage string      `json:"errorMessage"`
	Data         interface{} `json:"data"`
}

ResponsePayload is the response payload struct for all API

Jump to

Keyboard shortcuts

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