webserver

package
v0.0.0-...-920eab1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ACTION_RESULTS        = "results"
	ACTION_LOADING_STATUS = "loading_status"
)

Variables

This section is empty.

Functions

func NewSearchHandler

func NewSearchHandler(searcher *search.Searcher) http.Handler

Types

type LoadingStatus

type LoadingStatus struct {
	Provider string `json:"provider"`
	Loading  bool   `json:"loading"`
}

type PayloadRequest

type PayloadRequest struct {
	Query  string `json:"query"`
	Action string `json:"action"`
}

type PayloadResponse

type PayloadResponse struct {
	Action string      `json:"action"`
	Data   interface{} `json:"data"` //[]source.SearchResult `json:"data"`
	Query  string      `json:"query"`
}

type SearchServer

type SearchServer struct {
	http.Handler
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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