Documentation ¶
Overview ¶
Package api provides REST API functionality
Index ¶
- func Init(c conf.Config)
- func Listen()
- func ProvidersHandler(w http.ResponseWriter, req *http.Request)
- func RedirectHandler(w http.ResponseWriter, req *http.Request)
- func ResponseHandler(w http.ResponseWriter, req *http.Request, data []byte)
- func SearchHandler(w http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProvidersHandler ¶ added in v1.8.0
func ProvidersHandler(w http.ResponseWriter, req *http.Request)
ProvidersHandler is the handler for the providers route
func RedirectHandler ¶
func RedirectHandler(w http.ResponseWriter, req *http.Request)
RedirectHandler handles redirect for listen path prefix
func ResponseHandler ¶
func ResponseHandler(w http.ResponseWriter, req *http.Request, data []byte)
ResponseHandler handles HTTP responses
func SearchHandler ¶
func SearchHandler(w http.ResponseWriter, req *http.Request)
SearchHandler is the handler for the search route
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.