handlers

package
v0.0.0-...-290f48c Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Home

func Home(c echo.Context) error
func Search(c echo.Context) error

func SearchAPI

func SearchAPI(c echo.Context) error

func SearchBoxConfigAPI

func SearchBoxConfigAPI(c echo.Context) error

Types

type SearchRequest

type SearchRequest struct {
	Query string `json:"query"`
}

SearchRequest is the json request to the api/search endpoint.

type SearchResults

type SearchResults struct {
	// Exported to the api.
	Count int        `json:"count"`
	Shows []ShowInfo `json:"shows"`

	// Internal only.
	QueryTime time.Duration `json:"-"`
}

SearchResults is the json payload for a search query.

type ShowInfo

type ShowInfo struct {
	Date string `json:"date"`
	Url  string `json:"url"`
}

Jump to

Keyboard shortcuts

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