handlers

package
v0.0.0-...-a77a28b Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIArticle

func APIArticle(w http.ResponseWriter, rctx *chttp.Context) error

APIArticle handles article page request

func APIDictionariesList

func APIDictionariesList(w http.ResponseWriter, rctx *chttp.Context) error

APIDictionariesList dictionaries list endpoint

func APIDictionaryAbbrevs

func APIDictionaryAbbrevs(w http.ResponseWriter, rctx *chttp.Context) error

func APIDictionaryArticles

func APIDictionaryArticles(w http.ResponseWriter, rctx *chttp.Context) error

APIDictionaryArticles handles dictionary articles request

func APILetterFilter

func APILetterFilter(w http.ResponseWriter, rctx *chttp.Context) error

APILetterFilter handle letter filter request

func APINotFound

func APINotFound(w http.ResponseWriter, rctx *chttp.Context) error

APINotFound returns 404 to the caller

func APISearch

func APISearch(w http.ResponseWriter, rctx *chttp.Context) error

APISearch search endpoint

func APISuggest

func APISuggest(w http.ResponseWriter, rctx *chttp.Context) error

APISuggest handles suggest http request

func IndexHTML

func IndexHTML(w http.ResponseWriter, ctx *chttp.Context) error

func RobotsTXT

func RobotsTXT(w http.ResponseWriter, rctx *chttp.Context) error

RobotsTXT responds to /robots.txt request

func SitemapIndex

func SitemapIndex(w http.ResponseWriter, rctx *chttp.Context) error

SitemapIndex handles sitemap index request

func SitemapOfDictionary

func SitemapOfDictionary(w http.ResponseWriter, rctx *chttp.Context) error

SitemapOfDictionary handles dictionary sitemap request

func ToHTTPS

func ToHTTPS(w http.ResponseWriter, req *http.Request)

ToHTTPS redirects user to https

Types

This section is empty.

Jump to

Keyboard shortcuts

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