Documentation ¶
Overview ¶
Package service is where we handle every incoming services that are defined in router package
Index ¶
- func HandleCreateIndex(w http.ResponseWriter, r *http.Request)
- func HandleKeywordSuggestion(w http.ResponseWriter, r *http.Request)
- func HandlePing(w http.ResponseWriter, r *http.Request)
- func HandleSearch(w http.ResponseWriter, r *http.Request)
- func HandleUpdateIndex(w http.ResponseWriter, r *http.Request)
- type ResponsePayload
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
Click to show internal directories.
Click to hide internal directories.